3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = 'a,b,c'; foreach(explode(",", $str) as $key){ $res[$key] = null; } print_r($res);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/KGlfA
function name:  (null)
number of ops:  15
compiled vars:  !0 = $str, !1 = $key, !2 = $res
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'a%2Cb%2Cc'
    3     1        INIT_FCALL                                                   'explode'
          2        SEND_VAL                                                     '%2C'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $4      
          5      > FE_RESET_R                                           $5      $4, ->10
          6    > > FE_FETCH_R                                                   $5, !1, ->10
    4     7    >   ASSIGN_DIM                                                   !2, !1
          8        OP_DATA                                                      null
    3     9      > JMP                                                          ->6
         10    >   FE_FREE                                                      $5
    6    11        INIT_FCALL                                                   'print_r'
         12        SEND_VAR                                                     !2
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.46 ms | 2140 KiB | 15 Q