3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mapper = array('idPDV' => 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, 'services_trendelantero' => 28, 'services_trentracero' => 29, 'services_amortiguadores' => 30, 'services_llantas' => 31, 'services_runflat' => 32, 'services_suspencion' => 33, 'services_embrague' => 34, 'services_auxilio' => 35, 'services_motos' => 36, 'services_repuestos' => 37, 'services_inyeccion' => 38, 'services_gnc' => 39, 'services_alarmas' => 40 ); $i = 0; foreach ($mapper as $name => $id) { echo "'".$name . "' => $i, \n"; $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.36, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.12 - 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
'idPDV' => 0, 'nroCliente' => 1, 'nombre' => 2, 'direccion' => 3, 'ciudad' => 4, 'provincia' => 5, 'telefono1' => 6, 'telefono2' => 7, 'email' => 8, 'website' => 9, 'horario' => 10, 'horario_sab' => 11, 'horario_dom' => 12, 'efectivo' => 13, 'amex' => 14, 'visa' => 15, 'mastercard' => 16, 'other_cards' => 17, 'other_cards1' => 18, 'other_cards2' => 19, 'services_alignment' => 20, 'services_ac' => 21, 'services_frenos' => 22, 'services_aceite' => 23, 'services_filtros' => 24, 'services_lubricacion' => 25, 'services_balanceo' => 26, 'services_bateria' => 27, 'services_choques' => 28, 'services_trendelantero' => 29, 'services_trentracero' => 30, 'services_amortiguadores' => 31, 'services_llantas' => 32, 'services_runflat' => 33, 'services_suspencion' => 34, 'services_embrague' => 35, 'services_auxilio' => 36, 'services_motos' => 37, 'services_repuestos' => 38, 'services_inyeccion' => 39, 'services_gnc' => 40, 'services_alarmas' => 41,

preferences:
219.3 ms | 407 KiB | 347 Q