3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(-1); define('a', 1); define('A', 2, true); var_dump(a); var_dump(A); define('B', 1); define('b', 2, true); var_dump(b); var_dump(B);
Output for 4.3.0 - 5.6.21, 7.0.0 - 7.1.0
Notice: Constant a already defined in /in/7eeJK on line 6 int(1) Notice: Use of undefined constant A - assumed 'A' in /in/7eeJK on line 8 string(1) "A" int(2) int(1)
Output for hhvm-3.12.0
Warning: Case insensitive constant names are not supported in HipHop in /in/7eeJK on line 6 int(1) int(2) Warning: Case insensitive constant names are not supported in HipHop in /in/7eeJK on line 11 int(2) int(1)
Output for hhvm-3.10.0

Process exited with code 153.