3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $Obj2 = new stdClass( getFoo( $Obj1 ) ); var_dump($Obj2);
based on LCqfA
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function getFoo() in /in/mB9FN:3 Stack trace: #0 {main} thrown in /in/mB9FN on line 3
Process exited with code 255.
Output for 5.3.21 - 7.0.20
object(stdClass)#1 (0) { }