3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('sOmE_CoNsT', 1, true); echo SOME_CONST; // Prints 1 define('SOME_CONST', 2); echo SOME_CONST; // Prints 2
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.6.30, 7.0.0 - 7.1.9
12
Output for hhvm-3.10.1 - 3.21.0
Warning: Case insensitive constant names are not supported in HipHop in /in/8atvM on line 3 Notice: Use of undefined constant SOME_CONST - assumed 'SOME_CONST' in /in/8atvM on line 4 SOME_CONST2
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/8atvM on line 7
Process exited with code 255.