3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.02 ms | 1395 KiB | 15 Q