3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; while( true ){ echo $i++.PHP_EOL; for($j = 0; $j < 10; $j++){ echo $i. " - ". $j.PHP_EOL; if( $i == 101 ){ goto end; } } } end: echo "end";
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 = 18, Position 2 = 2
Branch analysis from position: 18
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 = 7
Branch analysis from position: 17
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
Branch analysis from position: 7
filename:       /in/s0hoP
function name:  (null)
number of ops:  20
compiled vars:  !0 = $i, !1 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    4     1      > JMP                                                      ->17
    5     2    >   POST_INC                                         ~3      !0
          3        CONCAT                                           ~4      ~3, '%0A'
          4        ECHO                                                     ~4
    6     5        ASSIGN                                                   !1, 0
          6      > JMP                                                      ->15
    7     7    >   CONCAT                                           ~6      !0, '+-+'
          8        CONCAT                                           ~7      ~6, !1
          9        CONCAT                                           ~8      ~7, '%0A'
         10        ECHO                                                     ~8
    9    11        IS_EQUAL                                                 !0, 101
         12      > JMPZ                                                     ~9, ->14
   10    13    > > JMP                                                      ->18
    6    14    >   PRE_INC                                                  !1
         15    >   IS_SMALLER                                               !1, 10
         16      > JMPNZ                                                    ~11, ->7
    4    17    > > JMPNZ                                                    <true>, ->2
   16    18    >   ECHO                                                     'end'
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.58 ms | 1394 KiB | 13 Q