3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo {} $foo = new Foo(new Bar()); print_r($foo);
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught Error: Class 'Bar' not found in /in/Ivgv4:5 Stack trace: #0 {main} thrown in /in/Ivgv4 on line 5
Process exited with code 255.
Output for 5.0.0 - 7.0.20
Foo Object ( )
Output for 4.3.0 - 4.4.9
foo Object ( )