3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d=6; $num=1; for($a=1;$a<=$d;$a++) { for($b=0;$b<=$a;$b++) { echo "$a "; $num++; } echo "$num "; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 4
Branch analysis from position: 19
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 = 6
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 4
Branch analysis from position: 19
Branch analysis from position: 4
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 6
Branch analysis from position: 13
Branch analysis from position: 6
filename:       /in/m5ja9
function name:  (null)
number of ops:  20
compiled vars:  !0 = $d, !1 = $num, !2 = $a, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 6
    4     1        ASSIGN                                                   !1, 1
    5     2        ASSIGN                                                   !2, 1
          3      > JMP                                                      ->17
    7     4    >   ASSIGN                                                   !3, 0
          5      > JMP                                                      ->11
    9     6    >   NOP                                                      
          7        FAST_CONCAT                                      ~8      !2, '+'
          8        ECHO                                                     ~8
   10     9        PRE_INC                                                  !1
    7    10        PRE_INC                                                  !3
         11    >   IS_SMALLER_OR_EQUAL                                      !3, !2
         12      > JMPNZ                                                    ~11, ->6
   13    13    >   NOP                                                      
         14        FAST_CONCAT                                      ~12     !1, '+'
         15        ECHO                                                     ~12
    5    16        PRE_INC                                                  !2
         17    >   IS_SMALLER_OR_EQUAL                                      !2, !0
         18      > JMPNZ                                                    ~14, ->4
   14    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.92 ms | 1394 KiB | 13 Q