3v4l.org

run code in 300+ PHP versions simultaneously
<?php $size = 5; $max = $size - 1; echo "<table>\n"; for ($row = 0; $row < $size; ++$row) { echo "\t<tr>"; for ($col = 0; $col < $size; ++$col) { echo "<td>" . (($row >= $max / 2 ? $max - $row : $row) + ($col >= $max / 2 ? $max - $col : $col)) . "</td>"; } echo "</tr>\n"; } echo "</table>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 6
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 9
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 6
Branch analysis from position: 34
Branch analysis from position: 6
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 22
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 9
Branch analysis from position: 30
Branch analysis from position: 9
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 9
Branch analysis from position: 30
Branch analysis from position: 9
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 22
Branch analysis from position: 19
Branch analysis from position: 22
filename:       /in/kdeFU
function name:  (null)
number of ops:  36
compiled vars:  !0 = $size, !1 = $max, !2 = $row, !3 = $col
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 5
    3     1        SUB                                              ~5      !0, 1
          2        ASSIGN                                                   !1, ~5
    4     3        ECHO                                                     '%3Ctable%3E%0A'
    5     4        ASSIGN                                                   !2, 0
          5      > JMP                                                      ->32
    6     6    >   ECHO                                                     '%09%3Ctr%3E'
    7     7        ASSIGN                                                   !3, 0
          8      > JMP                                                      ->28
    8     9    >   DIV                                              ~9      !1, 2
         10        IS_SMALLER_OR_EQUAL                                      ~9, !2
         11      > JMPZ                                                     ~10, ->15
         12    >   SUB                                              ~11     !1, !2
         13        QM_ASSIGN                                        ~12     ~11
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~12     !2
         16    >   DIV                                              ~13     !1, 2
         17        IS_SMALLER_OR_EQUAL                                      ~13, !3
         18      > JMPZ                                                     ~14, ->22
         19    >   SUB                                              ~15     !1, !3
         20        QM_ASSIGN                                        ~16     ~15
         21      > JMP                                                      ->23
         22    >   QM_ASSIGN                                        ~16     !3
         23    >   ADD                                              ~17     ~12, ~16
         24        CONCAT                                           ~18     '%3Ctd%3E', ~17
         25        CONCAT                                           ~19     ~18, '%3C%2Ftd%3E'
         26        ECHO                                                     ~19
    7    27        PRE_INC                                                  !3
         28    >   IS_SMALLER                                               !3, !0
         29      > JMPNZ                                                    ~21, ->9
   10    30    >   ECHO                                                     '%3C%2Ftr%3E%0A'
    5    31        PRE_INC                                                  !2
         32    >   IS_SMALLER                                               !2, !0
         33      > JMPNZ                                                    ~23, ->6
   12    34    >   ECHO                                                     '%3C%2Ftable%3E'
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
134.84 ms | 1000 KiB | 13 Q