3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test() $obj = new stdClass(); $obj->test = 'test'; return $obj; } echo test()->test;
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected '$obj' (T_VARIABLE), expecting '{' in /in/BvFRA on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE, expecting '{' in /in/BvFRA on line 3
Process exited with code 255.