3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
140.94 ms | 2031 KiB | 13 Q