3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.76 ms | 1394 KiB | 13 Q