3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $mapper = array('nroCliente' => 0, 'nombre' => 0, 'direccion' => 1, 'ciudad' => 2, 'provincia' => 3, 'telefono1' => 4, 'telefono2' => 5, 'email' => 6, 'website' => 7, 'horario' => 8, 'horario_sab' => 9, 'horario_dom' => 10, 'efectivo' => 11, 'amex' => 12, 'visa' => 13, 'mastercard' => 14, 'other_cards' => 15, 'other_cards1' => 16, 'other_cards2' => 17, 'services_alignment' => 18, 'services_ac' => 19, 'services_frenos' => 20, 'services_aceite' => 21, 'services_filtros' => 22, 'services_lubricacion' => 23, 'services_balanceo' => 24, 'services_bateria' => 25, 'services_choques' => 26, 'other_services1' => 27, 'other_services2' => 28, 'other_services3' => 29 ); $i = 0; foreach ($mapper as $map => $key) { echo "'" . $map . "' => " . $i; $i++; }
Output for 4.3.0 - 7.1.0
'nroCliente' => 0'nombre' => 1'direccion' => 2'ciudad' => 3'provincia' => 4'telefono1' => 5'telefono2' => 6'email' => 7'website' => 8'horario' => 9'horario_sab' => 10'horario_dom' => 11'efectivo' => 12'amex' => 13'visa' => 14'mastercard' => 15'other_cards' => 16'other_cards1' => 17'other_cards2' => 18'services_alignment' => 19'services_ac' => 20'services_frenos' => 21'services_aceite' => 22'services_filtros' => 23'services_lubricacion' => 24'services_balanceo' => 25'services_bateria' => 26'services_choques' => 27'other_services1' => 28'other_services2' => 29'other_services3' => 30