3v4l.org

run code in 300+ PHP versions simultaneously
<?php $range = range(1,10); $limit = count($range); for ($i = 0; $i < $limit; $i++) { print $i; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 9
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 9
Branch analysis from position: 13
Branch analysis from position: 9
filename:       /in/keDbh
function name:  (null)
number of ops:  14
compiled vars:  !0 = $range, !1 = $limit, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 10
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    3     5        COUNT                                            ~5      !0
          6        ASSIGN                                                   !1, ~5
    4     7        ASSIGN                                                   !2, 0
          8      > JMP                                                      ->11
    5     9    >   ECHO                                                     !2
    4    10        PRE_INC                                                  !2
         11    >   IS_SMALLER                                               !2, !1
         12      > JMPNZ                                                    ~9, ->9
    6    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.44 ms | 1394 KiB | 15 Q