3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [1,2,3,4,5]; var_dump(current($array)); foreach ($array as $item) { break; } var_dump(current($array));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 11
filename:       /in/8bLqW
function name:  (null)
number of ops:  19
compiled vars:  !0 = $array, !1 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'current'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        DO_ICALL                                                 
    4     7      > FE_RESET_R                                       $5      !0, ->11
          8    > > FE_FETCH_R                                               $5, !1, ->11
    5     9    > > JMP                                                      ->11
    4    10*       JMP                                                      ->8
         11    >   FE_FREE                                                  $5
    8    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'current'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $6      
         16        SEND_VAR                                                 $6
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.27 ms | 1395 KiB | 17 Q