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; } for($a = 0; $a <= 5; $a++) { echo $a . "\n<br/>"; }
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 = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 18
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 18
Branch analysis from position: 23
Branch analysis from position: 18
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/MPgUk
function name:  (null)
number of ops:  24
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
   10    16        ASSIGN                                                   !0, 0
         17      > JMP                                                      ->21
   12    18    >   CONCAT                                           ~11     !0, '%0A%3Cbr%2F%3E'
         19        ECHO                                                     ~11
   10    20        PRE_INC                                                  !0
         21    >   IS_SMALLER_OR_EQUAL                                      !0, 5
         22      > JMPNZ                                                    ~13, ->18
   13    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.85 ms | 941 KiB | 16 Q