3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach ( array(1,2) as $key ) { echo 'looping 1...'; foreach ( array(3,4) as $value ) { echo 'looping 2...'; if ( in_array($value,array(3,4)) ) { echo 'hehe'; break 2; } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 17
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 17
Branch analysis from position: 2
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 15
Branch analysis from position: 17
Branch analysis from position: 17
filename:       /in/HREJM
function name:  (null)
number of ops:  19
compiled vars:  !0 = $key, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > FE_RESET_R                                       $2      <array>, ->17
          1    > > FE_FETCH_R                                               $2, !0, ->17
    4     2    >   ECHO                                                     'looping+1...'
    5     3      > FE_RESET_R                                       $3      <array>, ->15
          4    > > FE_FETCH_R                                               $3, !1, ->15
    6     5    >   ECHO                                                     'looping+2...'
    7     6        INIT_FCALL                                               'in_array'
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 <array>
          9        DO_ICALL                                         $4      
         10      > JMPZ                                                     $4, ->14
    8    11    >   ECHO                                                     'hehe'
    9    12        FE_FREE                                                  $3
         13      > JMP                                                      ->17
    5    14    > > JMP                                                      ->4
         15    >   FE_FREE                                                  $3
    3    16      > JMP                                                      ->1
         17    >   FE_FREE                                                  $2
   12    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.12 ms | 1395 KiB | 15 Q