3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define('null', "hello", true); var_dump(null); // null var_dump(NULL); // null var_dump(null); // null var_dump(NULL); // hello world
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.6.28, 7.0.0 - 7.1.0
Notice: Constant null already defined in /in/G3eQ7 on line 3 NULL NULL NULL NULL
Output for hhvm-3.10.0 - 3.12.0
Warning: Case insensitive constant names are not supported in HipHop in /in/G3eQ7 on line 3 Notice: Constant null already defined in /in/G3eQ7 on line 3 NULL NULL NULL NULL
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/G3eQ7 on line 8
Process exited with code 255.