3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.88 ms | 1390 KiB | 16 Q