3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $n = 'test'; var_dump( array( 'item' => 1, n => 1 ) );
Output for 7.2.0
Warning: Use of undefined constant n - assumed 'n' (this will throw an Error in a future version of PHP) in /in/H6UPO on line 4 array(2) { ["item"]=> int(1) ["n"]=> int(1) }
Output for 5.3.22 - 7.1.10
Notice: Use of undefined constant n - assumed 'n' in /in/H6UPO on line 4 array(2) { ["item"]=> int(1) ["n"]=> int(1) }