3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '|23&65|567&89.7|90&65.35'; $ar = explode("|", $string); $ar = array_slice($ar, 1, sizeof($ar)); $ir = array(); foreach($ar as $key => $a) { $er = explode('&', $a); $ir[$key]['id_dispositivo'] = $er[0]; $ir[$key]['vl_dispositivo'] = $er[1]; } echo(var_dump($ir));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 31
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 31
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
filename:       /in/HDYGe
function name:  (null)
number of ops:  37
compiled vars:  !0 = $string, !1 = $ar, !2 = $ir, !3 = $a, !4 = $key, !5 = $er
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7C23%2665%7C567%2689.7%7C90%2665.35'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%7C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !1, $7
    5     6        INIT_FCALL                                               'array_slice'
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 1
          9        COUNT                                            ~9      !1
         10        SEND_VAL                                                 ~9
         11        DO_ICALL                                         $10     
         12        ASSIGN                                                   !1, $10
    6    13        ASSIGN                                                   !2, <array>
    7    14      > FE_RESET_R                                       $13     !1, ->31
         15    > > FE_FETCH_R                                       ~14     $13, !3, ->31
         16    >   ASSIGN                                                   !4, ~14
    8    17        INIT_FCALL                                               'explode'
         18        SEND_VAL                                                 '%26'
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                         $16     
         21        ASSIGN                                                   !5, $16
    9    22        FETCH_DIM_R                                      ~20     !5, 0
         23        FETCH_DIM_W                                      $18     !2, !4
         24        ASSIGN_DIM                                               $18, 'id_dispositivo'
         25        OP_DATA                                                  ~20
   10    26        FETCH_DIM_R                                      ~23     !5, 1
         27        FETCH_DIM_W                                      $21     !2, !4
         28        ASSIGN_DIM                                               $21, 'vl_dispositivo'
         29        OP_DATA                                                  ~23
    7    30      > JMP                                                      ->15
         31    >   FE_FREE                                                  $13
   12    32        INIT_FCALL                                               'var_dump'
         33        SEND_VAR                                                 !2
         34        DO_ICALL                                         $24     
         35        ECHO                                                     $24
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.26 ms | 1396 KiB | 19 Q