3v4l.org

run code in 500+ PHP versions simultaneously
<?php $number = 5; for ($i = 1; $i <= $number; ++$i) { echo str_repeat('*', $i * .5 * ($i + 1)) . str_repeat('0', $i - 1) . 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 = 3
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 3
Branch analysis from position: 21
Branch analysis from position: 3
filename:       /in/7tmmR
function name:  (null)
number of ops:  22
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                                                          ->19
    5     3    >   INIT_FCALL                                                   'str_repeat'
          4        SEND_VAL                                                     '%2A'
          5        MUL                                                  ~4      !1, 0.5
          6        ADD                                                  ~5      !1, 1
          7        MUL                                                  ~6      ~4, ~5
          8        SEND_VAL                                                     ~6
          9        DO_ICALL                                             $7      
    6    10        INIT_FCALL                                                   'str_repeat'
         11        SEND_VAL                                                     '0'
         12        SUB                                                  ~8      !1, 1
         13        SEND_VAL                                                     ~8
         14        DO_ICALL                                             $9      
         15        CONCAT                                               ~10     $7, $9
    7    16        CONCAT                                               ~11     ~10, '%0A'
         17        ECHO                                                         ~11
    4    18        PRE_INC                                                      !1
         19    >   IS_SMALLER_OR_EQUAL                                          !1, !0
         20      > JMPNZ                                                        ~13, ->3
    8    21    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.65 ms | 1865 KiB | 13 Q