3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.97 ms | 1395 KiB | 15 Q