3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('Buenos Aires' => 'Salto'); $arrCiudades[$a] = 1337; $idCiudad = $arrCiudades['Buenos Aires']['Salto']; echo $idCiudad;
Output for 5.3.0 - 7.1.0
Warning: Illegal offset type in /in/mGnBM on line 3 Notice: Undefined index: Buenos Aires in /in/mGnBM on line 7
Output for 4.3.0 - 5.2.17
Warning: Illegal offset type in /in/mGnBM on line 3 Notice: Undefined index: Buenos Aires in /in/mGnBM on line 7