3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = range('A', 'z'); $start = 0; while ($start < 17) { next($array); } // now $array pointer is the 16th var_dump($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
Branch analysis from position: 7
filename:       /in/OAJ2l
function name:  (null)
number of ops:  16
compiled vars:  !0 = $array, !1 = $start
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 'A'
          2        SEND_VAL                                                 'z'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    5     5        ASSIGN                                                   !1, 0
    6     6      > JMP                                                      ->10
    7     7    >   INIT_FCALL                                               'next'
          8        SEND_REF                                                 !0
          9        DO_ICALL                                                 
    6    10    >   IS_SMALLER                                               !1, 17
         11      > JMPNZ                                                    ~6, ->7
   11    12    >   INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.56 ms | 1394 KiB | 19 Q