3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.92 ms | 1395 KiB | 17 Q