3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array( 'a' => array( 'A', 'B', 'C', 'D', ), 'b' => array( 'AA', 'BB', 'CC', 'DD', ), ); print_r($a[a]);
Output for 7.2.0
Warning: Use of undefined constant a - assumed 'a' (this will throw an Error in a future version of PHP) in /in/54IGP on line 12 Array ( [0] => A [1] => B [2] => C [3] => D )
Output for 5.3.18 - 7.1.10
Notice: Use of undefined constant a - assumed 'a' in /in/54IGP on line 12 Array ( [0] => A [1] => B [2] => C [3] => D )