3v4l.org

run code in 300+ PHP versions simultaneously
<?php $peak = 5; for ($i = $peak; $i; --$i) { for ($n = $i; $n <= $peak; ++$n) { echo $n; } echo "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 5
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
Branch analysis from position: 3
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 5
Branch analysis from position: 9
Branch analysis from position: 5
filename:       /in/neA54
function name:  (null)
number of ops:  13
compiled vars:  !0 = $peak, !1 = $i, !2 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 5
    5     1        ASSIGN                                                   !1, !0
          2      > JMP                                                      ->11
    6     3    >   ASSIGN                                                   !2, !1
          4      > JMP                                                      ->7
    7     5    >   ECHO                                                     !2
    6     6        PRE_INC                                                  !2
          7    >   IS_SMALLER_OR_EQUAL                                      !2, !0
          8      > JMPNZ                                                    ~7, ->5
    9     9    >   ECHO                                                     '%0A'
    5    10        PRE_DEC                                                  !1
         11    > > JMPNZ                                                    !1, ->3
   10    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.22 ms | 994 KiB | 13 Q