3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /** * the deref function */ function ($mixed) { return $mixed; } class foo { function bar($subj) { var_dump($subj); } } ‚Äč($foo = new foo())->bar($foo);
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/k7bBo on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_CLASS in /in/k7bBo on line 9
Process exited with code 255.