3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = range(0,20); $limit = 5; foreach($a as $i) { echo $i . "\n<br/>"; if(!$limit--) break; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 15
Branch analysis from position: 15
filename:       /in/at4GY
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $limit, !2 = $i
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      > FE_RESET_R                                       $6      !0, ->15
          7    > > FE_FETCH_R                                               $6, !2, ->15
    6     8    >   CONCAT                                           ~7      !2, '%0A%3Cbr%2F%3E'
          9        ECHO                                                     ~7
    7    10        POST_DEC                                         ~8      !1
         11        BOOL_NOT                                         ~9      ~8
         12      > JMPZ                                                     ~9, ->14
         13    > > JMP                                                      ->15
    4    14    > > JMP                                                      ->7
         15    >   FE_FREE                                                  $6
    8    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.6 ms | 1386 KiB | 15 Q