3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = 5; $star = '*'; $stars = $star; for ($i = 0; $i < $number; ++$i, $stars .= $star ) { echo "$stars\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 5
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 5
Branch analysis from position: 12
Branch analysis from position: 5
filename:       /in/On0g2
function name:  (null)
number of ops:  13
compiled vars:  !0 = $number, !1 = $star, !2 = $stars, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 5
    4     1        ASSIGN                                                   !1, '%2A'
    5     2        ASSIGN                                                   !2, !1
    6     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->10
   10     5    >   NOP                                                      
          6        FAST_CONCAT                                      ~8      !2, '%0A'
          7        ECHO                                                     ~8
    8     8        PRE_INC                                                  !3
          9        ASSIGN_OP                                     8          !2, !1
    7    10    >   IS_SMALLER                                               !3, !0
         11      > JMPNZ                                                    ~11, ->5
   11    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.52 ms | 1006 KiB | 13 Q