3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = 5; $line = ''; for ($i = 1; $i <= $number; ++$i) { echo ( $line = str_repeat('*', $i) . $line . ($i > 1 ? '0' : '') ) . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 4
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 4
Branch analysis from position: 21
Branch analysis from position: 4
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 4
Branch analysis from position: 21
Branch analysis from position: 4
filename:       /in/dD7LM
function name:  (null)
number of ops:  22
compiled vars:  !0 = $number, !1 = $line, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 5
    4     1        ASSIGN                                                   !1, ''
    5     2        ASSIGN                                                   !2, 1
          3      > JMP                                                      ->19
    7     4    >   INIT_FCALL                                               'str_repeat'
          5        SEND_VAL                                                 '%2A'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $6      
    8     8        CONCAT                                           ~7      $6, !1
    9     9        IS_SMALLER                                               1, !2
         10      > JMPZ                                                     ~8, ->13
         11    >   QM_ASSIGN                                        ~9      '0'
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~9      ''
         14    >   CONCAT                                           ~10     ~7, ~9
    7    15        ASSIGN                                           ~11     !1, ~10
   11    16        CONCAT                                           ~12     ~11, '%0A'
         17        ECHO                                                     ~12
    5    18        PRE_INC                                                  !2
         19    >   IS_SMALLER_OR_EQUAL                                      !2, !0
         20      > JMPNZ                                                    ~14, ->4
   12    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.96 ms | 997 KiB | 14 Q