3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo {} $d = & new Foo(); echo get_class($d);
Output for 7.0.0 - 7.0.2
Parse error: syntax error, unexpected 'new' (T_NEW) in /in/Ftc9A on line 5
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Deprecated: Assigning the return value of new by reference is deprecated in /in/Ftc9A on line 5 Foo