3v4l.org

run code in 500+ PHP versions simultaneously
<?php $i = 0; $result = []; foreach (explode('.', 'a.string.to.explode') as $result[++$i]); var_export($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/0gdKs
function name:  (null)
number of ops:  17
compiled vars:  !0 = $i, !1 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 0
    4     1        ASSIGN                                                       !1, <array>
    5     2        INIT_FCALL                                                   'explode'
          3        SEND_VAL                                                     '.'
          4        SEND_VAL                                                     'a.string.to.explode'
          5        DO_ICALL                                             $4      
          6      > FE_RESET_R                                           $5      $4, ->12
          7    > > FE_FETCH_R                                                   $5, $6, ->12
          8    >   PRE_INC                                              ~7      !0
          9        ASSIGN_DIM                                                   !1, ~7
         10        OP_DATA                                                      $6
         11      > JMP                                                          ->7
         12    >   FE_FREE                                                      $5
    6    13        INIT_FCALL                                                   'var_export'
         14        SEND_VAR                                                     !1
         15        DO_ICALL                                                     
         16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.37 ms | 1863 KiB | 15 Q