3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 1; $a = array('a','b','c','d','e'); foreach($a as $item){ if($i > 3) break; echo "\n$i"; $i++; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 12
Branch analysis from position: 12
filename:       /in/ekNIA
function name:  (null)
number of ops:  14
compiled vars:  !0 = $i, !1 = $a, !2 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        ASSIGN                                                   !1, <array>
    6     2      > FE_RESET_R                                       $5      !1, ->12
          3    > > FE_FETCH_R                                               $5, !2, ->12
    7     4    >   IS_SMALLER                                               3, !0
          5      > JMPZ                                                     ~6, ->7
          6    > > JMP                                                      ->12
    8     7    >   NOP                                                      
          8        FAST_CONCAT                                      ~7      '%0A', !0
          9        ECHO                                                     ~7
    9    10        PRE_INC                                                  !0
    6    11      > JMP                                                      ->3
         12    >   FE_FREE                                                  $5
   10    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.11 ms | 1394 KiB | 13 Q