3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Test { var $test = 'test'; } $test = array(new Test()); //var_dump(spl_object_hash($test)); foreach ($test as $t) { //$test[0] = 2; $t->test = 'nope'; } //var_dump(spl_object_hash($test));
based on L7OAC
Output for 4.3.0 - 4.4.9, 5.1.3 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.1.2
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/HECUO on line 3
Output for 5.1.0
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/HECUO on line 3 Fatal error: fatal flex scanner internal error--end of buffer missed in /in/HECUO on line 15
Process exited with code 255.