3v4l.org

run code in 300+ PHP versions simultaneously
<?php $exp = 'ukuran:33,34,35;warna:putih,hitam'; print '<pre>'; $result = explode(';',$exp); print_r($result); foreach($result as $k=>$v){ $key_value = explode(':',$v); ${$key_value[0]} = explode(',',$key_value[1]); } print_r($ukuran); print '<br/>'; print_r($warna); print '</pre>'; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 27
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 27
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/BAaCT
function name:  (null)
number of ops:  37
compiled vars:  !0 = $exp, !1 = $result, !2 = $v, !3 = $k, !4 = $key_value, !5 = $ukuran, !6 = $warna
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ukuran%3A33%2C34%2C35%3Bwarna%3Aputih%2Chitam'
    4     1        ECHO                                                     '%3Cpre%3E'
    5     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%3B'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $8      
          6        ASSIGN                                                   !1, $8
    6     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    7    10      > FE_RESET_R                                       $11     !1, ->27
         11    > > FE_FETCH_R                                       ~12     $11, !2, ->27
         12    >   ASSIGN                                                   !3, ~12
    8    13        INIT_FCALL                                               'explode'
         14        SEND_VAL                                                 '%3A'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $14     
         17        ASSIGN                                                   !4, $14
    9    18        FETCH_DIM_R                                      ~16     !4, 0
         19        INIT_FCALL                                               'explode'
         20        SEND_VAL                                                 '%2C'
         21        FETCH_DIM_R                                      ~18     !4, 1
         22        SEND_VAL                                                 ~18
         23        DO_ICALL                                         $19     
         24        FETCH_W                      local               $17     ~16
         25        ASSIGN                                                   $17, $19
    7    26      > JMP                                                      ->11
         27    >   FE_FREE                                                  $11
   11    28        INIT_FCALL                                               'print_r'
         29        SEND_VAR                                                 !5
         30        DO_ICALL                                                 
   12    31        ECHO                                                     '%3Cbr%2F%3E'
   13    32        INIT_FCALL                                               'print_r'
         33        SEND_VAR                                                 !6
         34        DO_ICALL                                                 
   14    35        ECHO                                                     '%3C%2Fpre%3E'
   15    36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.55 ms | 1012 KiB | 15 Q