3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function bar(){ $foo = new Foo(); $foo->bar(); } bar();
based on 4DeX9
Output for 7.0.0 - 7.3.0rc6
Fatal error: Uncaught Error: Class 'Foo' not found in /in/2as94:4 Stack trace: #0 /in/2as94(8): bar() #1 {main} thrown in /in/2as94 on line 4
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Fatal error: Class 'Foo' not found in /in/2as94 on line 4
Process exited with code 255.