3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('apple', 'banana', 'carrot'); $i = 0; foreach($arr as $val) { if($val == 'banana') { continue; } else { echo $val . $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 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/tiqgv
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arr, !1 = $i, !2 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
    5     2      > FE_RESET_R                                       $5      !0, ->12
          3    > > FE_FETCH_R                                               $5, !2, ->12
    6     4    >   IS_EQUAL                                                 !2, 'banana'
          5      > JMPZ                                                     ~6, ->8
          6    > > JMP                                                      ->3
          7*       JMP                                                      ->10
    7     8    >   CONCAT                                           ~7      !2, !1
          9        ECHO                                                     ~7
    8    10        PRE_INC                                                  !1
    5    11      > JMP                                                      ->3
         12    >   FE_FREE                                                  $5
    9    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.8 ms | 1394 KiB | 13 Q