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++; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 13
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 13
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/E3unA
function name:  (null)
number of ops:  15
compiled vars:  !0 = $mapper, !1 = $i, !2 = $id, !3 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   46     1        ASSIGN                                                   !1, 0
   47     2      > FE_RESET_R                                       $6      !0, ->13
          3    > > FE_FETCH_R                                       ~7      $6, !2, ->13
          4    >   ASSIGN                                                   !3, ~7
   49     5        CONCAT                                           ~9      '%27', !3
          6        ROPE_INIT                                     3  ~11     '%27+%3D%3E+'
          7        ROPE_ADD                                      1  ~11     ~11, !1
          8        ROPE_END                                      2  ~10     ~11, '%2C+%0A'
          9        CONCAT                                           ~13     ~9, ~10
         10        ECHO                                                     ~13
   51    11        PRE_INC                                                  !1
   47    12      > JMP                                                      ->3
         13    >   FE_FREE                                                  $6
   52    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152 ms | 1393 KiB | 13 Q