3v4l.org

run code in 200+ 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 - 7.1.10
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)