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 np7a0
Output for 7.0.0 - 7.2.0
Notice: Constant true already defined in /in/tAZgf on line 5 Fatal error: Uncaught Error: Class 'foo\foo' not found in /in/tAZgf:11 Stack trace: #0 {main} thrown in /in/tAZgf on line 11
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Notice: Constant true already defined in /in/tAZgf on line 5 Fatal error: Class 'foo\foo' not found in /in/tAZgf on line 11
Process exited with code 255.