3v4l.org

run code in 500+ PHP versions simultaneously
<?php for ($i = 0; $i < 4; ++$i) { for ($s = '', $j = 0; $j < 4; ++$j) { $s .= ($i + $j) % 4 + 1; echo $s . "\n"; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
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
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 2
Branch analysis from position: 17
Branch analysis from position: 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/NS137
function name:  (null)
number of ops:  18
compiled vars:  !0 = $i, !1 = $s, !2 = $j
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 0
          1      > JMP                                                          ->15
    4     2    >   ASSIGN                                                       !1, ''
          3        ASSIGN                                                       !2, 0
          4      > JMP                                                          ->12
    5     5    >   ADD                                                  ~6      !0, !2
          6        MOD                                                  ~7      ~6, 4
          7        ADD                                                  ~8      ~7, 1
          8        ASSIGN_OP                                         8          !1, ~8
    6     9        CONCAT                                               ~10     !1, '%0A'
         10        ECHO                                                         ~10
    4    11        PRE_INC                                                      !2
         12    >   IS_SMALLER                                                   !2, 4
         13      > JMPNZ                                                        ~12, ->5
    3    14    >   PRE_INC                                                      !0
         15    >   IS_SMALLER                                                   !0, 4
         16      > JMPNZ                                                        ~14, ->2
    8    17    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
216.76 ms | 1887 KiB | 13 Q