3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 3; $i = $i + 1) { for ($j = 0; $j < 4; $j = $j + 1) { if( $j == 2) { print "I: $i, J: $j\n"; } break; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 4
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 2
Branch analysis from position: 21
Branch analysis from position: 2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 12
filename:       /in/bHQrE
function name:  (null)
number of ops:  22
compiled vars:  !0 = $i, !1 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->19
    3     2    >   ASSIGN                                                   !1, 0
          3      > JMP                                                      ->15
    4     4    >   IS_EQUAL                                                 !1, 2
          5      > JMPZ                                                     ~4, ->12
    5     6    >   ROPE_INIT                                     5  ~6      'I%3A+'
          7        ROPE_ADD                                      1  ~6      ~6, !0
          8        ROPE_ADD                                      2  ~6      ~6, '%2C+J%3A+'
          9        ROPE_ADD                                      3  ~6      ~6, !1
         10        ROPE_END                                      4  ~5      ~6, '%0A'
         11        ECHO                                                     ~5
    7    12    > > JMP                                                      ->17
    3    13*       ADD                                              ~9      !1, 1
         14*       ASSIGN                                                   !1, ~9
         15    >   IS_SMALLER                                               !1, 4
         16      > JMPNZ                                                    ~11, ->4
    2    17    >   ADD                                              ~12     !0, 1
         18        ASSIGN                                                   !0, ~12
         19    >   IS_SMALLER                                               !0, 3
         20      > JMPNZ                                                    ~14, ->2
    9    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.96 ms | 1394 KiB | 13 Q