3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.39 ms | 1395 KiB | 19 Q