3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rowCount = 6; echo <<<XD <table border=1> <tr> <th> K1 </th> <th> K2 </th> </tr> XD; foreach( range(1,$rowCount) as $row){ echo "\n<tr>\n"; if($row != $rowCount){ echo "\t<td>K1</td>\n\t<td>K2</td>\n"; } else { echo "\t<th colspan='2'> KK 1 KK 2 </th>\n"; } echo "</tr>\n\n"; } echo "\n</table>";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/PcQFv
function name:  (null)
number of ops:  19
compiled vars:  !0 = $rowCount, !1 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 6
    5     1        ECHO                                                     '+%3Ctable+border%3D1%3E%0A+%3Ctr%3E%0A+++%3Cth%3E+K1+%3C%2Fth%3E%0A+++%3Cth%3E+K2+%3C%2Fth%3E%0A+%3C%2Ftr%3E'
   13     2        INIT_FCALL                                               'range'
          3        SEND_VAL                                                 1
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6      > FE_RESET_R                                       $4      $3, ->16
          7    > > FE_FETCH_R                                               $4, !1, ->16
   14     8    >   ECHO                                                     '%0A%3Ctr%3E%0A'
   15     9        IS_NOT_EQUAL                                             !1, !0
         10      > JMPZ                                                     ~5, ->13
   16    11    >   ECHO                                                     '%09%3Ctd%3EK1%3C%2Ftd%3E%0A%09%3Ctd%3EK2%3C%2Ftd%3E%0A'
         12      > JMP                                                      ->14
   20    13    >   ECHO                                                     '%09%3Cth+colspan%3D%272%27%3E+KK+1+KK+2+%3C%2Fth%3E%0A'
   22    14    >   ECHO                                                     '%3C%2Ftr%3E%0A%0A'
   13    15      > JMP                                                      ->7
         16    >   FE_FREE                                                  $4
   24    17        ECHO                                                     '%0A%3C%2Ftable%3E'
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
126.85 ms | 1400 KiB | 15 Q