3v4l.org

run code in 300+ PHP versions simultaneously
<?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 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
'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

preferences:
255.93 ms | 410 KiB | 461 Q