3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define(KEY , 'laruence'); //省略很多行代码 $array[KEY] = 2; var_dump($array); ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Use of undefined constant KEY - assumed 'KEY' in /in/WcT4Q on line 3 array(1) { ["laruence"]=> int(2) }