3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = range(0,20); $limit = 5; for($x = 0; $x <= $limit; $x++) { echo $a[$x] . "\n<br/>"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 8
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 8
Branch analysis from position: 14
Branch analysis from position: 8
filename:       /in/6qvQG
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $limit, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 20
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    3     5        ASSIGN                                                   !1, 5
    4     6        ASSIGN                                                   !2, 0
          7      > JMP                                                      ->12
    6     8    >   FETCH_DIM_R                                      ~7      !0, !2
          9        CONCAT                                           ~8      ~7, '%0A%3Cbr%2F%3E'
         10        ECHO                                                     ~8
    4    11        PRE_INC                                                  !2
         12    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         13      > JMPNZ                                                    ~10, ->8
    7    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.29 ms | 1398 KiB | 15 Q