3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result_array = array(); $str = "1=>aaabba;4=>bsbsbsb;7=>flkdsl;5=>jdsfkjhsfd;"; $temp_array = explode(";",$str); $temp_array = array_filter($temp_array); foreach($temp_array as $val) { $sub_temp_array = explode("=>",$val); $result_array[$sub_temp_array[0]] = $sub_temp_array[1]; } print_r($result_array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 23
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 23
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/ueMEO
function name:  (null)
number of ops:  28
compiled vars:  !0 = $result_array, !1 = $str, !2 = $temp_array, !3 = $val, !4 = $sub_temp_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, '1%3D%3Eaaabba%3B4%3D%3Ebsbsbsb%3B7%3D%3Eflkdsl%3B5%3D%3Ejdsfkjhsfd%3B'
    5     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%3B'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !2, $7
    6     7        INIT_FCALL                                               'array_filter'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $9      
         10        ASSIGN                                                   !2, $9
    7    11      > FE_RESET_R                                       $11     !2, ->23
         12    > > FE_FETCH_R                                               $11, !3, ->23
    9    13    >   INIT_FCALL                                               'explode'
         14        SEND_VAL                                                 '%3D%3E'
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                         $12     
         17        ASSIGN                                                   !4, $12
   10    18        FETCH_DIM_R                                      ~14     !4, 0
         19        FETCH_DIM_R                                      ~16     !4, 1
         20        ASSIGN_DIM                                               !0, ~14
         21        OP_DATA                                                  ~16
    7    22      > JMP                                                      ->12
         23    >   FE_FREE                                                  $11
   12    24        INIT_FCALL                                               'print_r'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.31 ms | 1462 KiB | 16 Q