3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'a'; $n = 50; $i = 0; while ($i < $n) { $k = -1; $str = ""; while ($k < $i) { $str .= " $a"; $k++; } echo $str . PHP_EOL; $i++; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 4
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 4
Branch analysis from position: 18
Branch analysis from position: 4
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
Branch analysis from position: 7
filename:       /in/neDg1
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $n, !2 = $i, !3 = $k, !4 = $str
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
    7     3      > JMP                                                      ->16
    8     4    >   ASSIGN                                                   !3, -1
    9     5        ASSIGN                                                   !4, ''
   10     6      > JMP                                                      ->11
   11     7    >   NOP                                                      
          8        FAST_CONCAT                                      ~10     '+', !0
          9        ASSIGN_OP                                     8          !4, ~10
   12    10        PRE_INC                                                  !3
   10    11    >   IS_SMALLER                                               !3, !2
         12      > JMPNZ                                                    ~13, ->7
   14    13    >   CONCAT                                           ~14     !4, '%0A'
         14        ECHO                                                     ~14
   15    15        PRE_INC                                                  !2
    7    16    >   IS_SMALLER                                               !2, !1
         17      > JMPNZ                                                    ~16, ->4
   16    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
271.1 ms | 1007 KiB | 13 Q