3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace N { define('false', '- false -'); define('FALSE', '- FALSE -'); define('null', '- null -'); define('NULL', '- NULL -'); var_export(array(TRUE, true, FALSE, false, NULL, null)); }; define('false', '- false -'); define('FALSE', '- FALSE -'); define('null', '- null -'); define('NULL', '- NULL -'); var_export(array(TRUE, true, FALSE, false, NULL, null));
based on JusvB
Output for 7.0.0 - 7.0.1
Fatal error: No code may exist outside of namespace {} in /in/DsQCU on line 9
Process exited with code 255.
Output for 5.3.21 - 5.6.16
Fatal error: No code may exist outside of namespace {} in /in/DsQCU on line 8
Process exited with code 255.