3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.9 ms | 1009 KiB | 14 Q