3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php use true as false; define('false', '- false -'); define('\\false', '- \\false -'); define('\N\false', '- \\N\\false -'); define('N\false', '- N\\false -'); define('FALSE', '- FALSE -'); define('\\FALSE', '- \\FALSE -'); define('null', '- null -'); define('\N\null', '- \\N\\null -'); define('N\null', '- N\\null -'); define('NULL', '- NULL -'); define('N\NULL', '- N\\NULL -'); var_export(array(TRUE, true, FALSE, false, NULL, null));
based on TnMY3
Output for 7.0.0 - 7.0.1
Fatal error: Cannot use true as false because 'false' is a special class name in /in/ESFqS on line 2
Process exited with code 255.
Output for 5.3.21 - 5.6.21
Notice: Constant false already defined in /in/ESFqS on line 3 Notice: Constant null already defined in /in/ESFqS on line 9 array ( 0 => true, 1 => true, 2 => false, 3 => false, 4 => NULL, 5 => NULL, )