3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'php/127/typescript/12/jquery/120/angular/50'; $list = explode('/', $str); $list_count = count($list); $result = array(); for ($i=0 ; $i<$list_count; $i+=2) { $result[ $list[$i] ] = $list[$i+1]; } print_r($result); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 11
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 11
Branch analysis from position: 19
Branch analysis from position: 11
filename:       /in/8PQhd
function name:  (null)
number of ops:  23
compiled vars:  !0 = $str, !1 = $list, !2 = $list_count, !3 = $result, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'php%2F127%2Ftypescript%2F12%2Fjquery%2F120%2Fangular%2F50'
    6     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    7     6        COUNT                                            ~8      !1
          7        ASSIGN                                                   !2, ~8
    9     8        ASSIGN                                                   !3, <array>
   10     9        ASSIGN                                                   !4, 0
         10      > JMP                                                      ->17
   11    11    >   FETCH_DIM_R                                      ~12     !1, !4
         12        ADD                                              ~14     !4, 1
         13        FETCH_DIM_R                                      ~15     !1, ~14
         14        ASSIGN_DIM                                               !3, ~12
         15        OP_DATA                                                  ~15
   10    16        ASSIGN_OP                                     1          !4, 2
         17    >   IS_SMALLER                                               !4, !2
         18      > JMPNZ                                                    ~17, ->11
   14    19    >   INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                                 
   15    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.1 ms | 1446 KiB | 15 Q