3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a[uno] = 1; $a[dos] = 2; $a[dos] = 3; print_r($a); ?>
Output for 4.3.0 - 7.1.0
Notice: Use of undefined constant uno - assumed 'uno' in /in/LZfgZ on line 10 Notice: Use of undefined constant dos - assumed 'dos' in /in/LZfgZ on line 11 Notice: Use of undefined constant dos - assumed 'dos' in /in/LZfgZ on line 12 Array ( [uno] => 1 [dos] => 3 )