3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define( 'FOO_F1', array( 'f' => 1, 'b' => 2 ) ); var_dump( FOO_F1 );
Output for 7.0.0 - 7.1.0
array(2) { ["f"]=> int(1) ["b"]=> int(2) }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
Warning: Constants may only evaluate to scalar values in /in/houg9 on line 3 Notice: Use of undefined constant FOO_F1 - assumed 'FOO_F1' in /in/houg9 on line 5 string(6) "FOO_F1"