3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (1==1): echo 'Hallo'; endif; $foo = new foo();
based on t9MvO
Output for 7.0.0 - 7.2.0
Hallo Fatal error: Uncaught Error: Class 'foo' not found in /in/kj31d:7 Stack trace: #0 {main} thrown in /in/kj31d on line 7
Process exited with code 255.
Output for 5.3.22 - 5.6.28
Hallo Fatal error: Class 'foo' not found in /in/kj31d on line 7
Process exited with code 255.