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 '#'; } for ($spaces = LINES; $spaces >= $rows; $spaces--) { echo "+"; } echo PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 3
Branch analysis from position: 21
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
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 12
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 3
Branch analysis from position: 21
Branch analysis from position: 3
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 12
Branch analysis from position: 16
Branch analysis from position: 12
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/DG34B
function name:  (null)
number of ops:  22
compiled vars:  !0 = $rows, !1 = $stars, !2 = $spaces
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                                'LINES', 10
    5     1        ASSIGN                                                       !0, 0
          2      > JMP                                                          ->18
    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                                                        ~6, ->5
    9     9    >   FETCH_CONSTANT                                       ~7      'LINES'
         10        ASSIGN                                                       !2, ~7
         11      > JMP                                                          ->14
   10    12    >   ECHO                                                         '%2B'
    9    13        PRE_DEC                                                      !2
         14    >   IS_SMALLER_OR_EQUAL                                          !0, !2
         15      > JMPNZ                                                        ~10, ->12
   12    16    >   ECHO                                                         '%0A'
    5    17        PRE_INC                                                      !0
         18    >   FETCH_CONSTANT                                       ~12     'LINES'
         19        IS_SMALLER_OR_EQUAL                                          !0, ~12
         20      > JMPNZ                                                        ~13, ->3
   13    21    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
146.91 ms | 2050 KiB | 13 Q