3v4l.org

run code in 500+ PHP versions simultaneously
<?php $n = 3; for ($i = 0; $i <= $n; $i++) { for ($j = 0; $j < $i; $j++) { echo '#'; } 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 = 13, Position 2 = 3
Branch analysis from position: 13
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 = 13, Position 2 = 3
Branch analysis from position: 13
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/e0IJm
function name:  (null)
number of ops:  14
compiled vars:  !0 = $n, !1 = $i, !2 = $j
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 3
    5     1        ASSIGN                                                       !1, 0
          2      > JMP                                                          ->11
    6     3    >   ASSIGN                                                       !2, 0
          4      > JMP                                                          ->7
    7     5    >   ECHO                                                         '%23'
    6     6        PRE_INC                                                      !2
          7    >   IS_SMALLER                                                   !2, !1
          8      > JMPNZ                                                        ~7, ->5
    9     9    >   ECHO                                                         '%0A'
    5    10        PRE_INC                                                      !1
         11    >   IS_SMALLER_OR_EQUAL                                          !1, !0
         12      > JMPNZ                                                        ~9, ->3
   10    13    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.02 ms | 1581 KiB | 13 Q