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"; } } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 2
Branch analysis from position: 20
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
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
Branch analysis from position: 4
Branch analysis from position: 12
filename:       /in/mH29b
function name:  (null)
number of ops:  21
compiled vars:  !0 = $i, !1 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->18
    3     2    >   ASSIGN                                                   !1, 0
          3      > JMP                                                      ->14
    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
    3    12    >   ADD                                              ~9      !1, 1
         13        ASSIGN                                                   !1, ~9
         14    >   IS_SMALLER                                               !1, 4
         15      > JMPNZ                                                    ~11, ->4
    2    16    >   ADD                                              ~12     !0, 1
         17        ASSIGN                                                   !0, ~12
         18    >   IS_SMALLER                                               !0, 3
         19      > JMPNZ                                                    ~14, ->2
    9    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.36 ms | 1385 KiB | 13 Q