<?php class A { public $org;} class B { public $b = new A();} $test = new B(); var_dump($test);
Standard input is empty
Standard output is empty
PHP Fatal error: Constant expression contains invalid operations in /home/nA1onM/prog.php on line 9
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!