3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace foo; define('True', false, true); function test() { var_dump(true); } foo::test();
based on tAZgf
Output for 7.0.0 - 7.2.0
Notice: Constant true already defined in /in/n2Fc3 on line 5 Fatal error: Uncaught Error: Class 'foo\foo' not found in /in/n2Fc3:11 Stack trace: #0 {main} thrown in /in/n2Fc3 on line 11
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Notice: Constant true already defined in /in/n2Fc3 on line 5 Fatal error: Class 'foo\foo' not found in /in/n2Fc3 on line 11
Process exited with code 255.