3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 ); foreach ($mapper as $name => $id) { echo $name . "\n"; }
Output for 4.3.0 - 7.1.0
idPDV nroCliente nombre direccion ciudad provincia telefono1 telefono2 email website horario horario_sab horario_dom efectivo amex visa mastercard other_cards other_cards1 other_cards2 services_alignment services_ac services_frenos services_aceite services_filtros services_lubricacion services_balanceo services_bateria services_choques services_trendelantero services_trentracero services_amortiguadores services_llantas services_runflat services_suspencion services_embrague services_auxilio services_motos services_repuestos services_inyeccion services_gnc services_alarmas