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 = 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/CvZHA
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        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        POST_INC                                         ~11     !1
        18        FREE                                                     ~11
        19    >   CAST                                          0  ~12     !1, !0
        20      > JMPNZ                                                    ~12, ->3
   6    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
16.58 ms | 461 KiB | 7 Q