3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <title>JS Bin</title> <style type="text/css"> table.tb {border-collapse:collapse; width:100%; margin:0px 20px;} table.tb td {border:1px solid red; width:3%;} table.tb th {text-align:left; color:blue; } th span {margin-left:-20px;}; td input[type=checkbox]:checked + span {color:green;} </style> </head> <body> <?php error_reporting(0); $numRow=3; $numCol=18; $i=$j=1; echo "<table class=\"tb\">"; while($i<=$numRow) { echo "<tr>"; if ($i==1) { while($j<=$numCol) { $tIncrement=30*($j-1); $time=date("H:i",strtotime("08:00+ $tIncrement minute")); echo "<th><span>$time</span></th>"; $j++; } } else { while($j<=$numCol) { echo "<td><input type=\"checkbox\" name=\"slot\" ><span>slot</span></td>"; $j++; } } $j=1; echo "</tr>"; $i++; } echo "</table>"; ?> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
2 jumps found. (Code = 44) Position 1 = 46, Position 2 = 10
Branch analysis from position: 46
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 36
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 14
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
2 jumps found. (Code = 44) Position 1 = 46, Position 2 = 10
Branch analysis from position: 46
Branch analysis from position: 10
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 14
Branch analysis from position: 35
Branch analysis from position: 14
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 37
Branch analysis from position: 41
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 37
Branch analysis from position: 41
Branch analysis from position: 37
filename:       /in/6sgBW
function name:  (null)
number of ops:  49
compiled vars:  !0 = $numRow, !1 = $numCol, !2 = $i, !3 = $j, !4 = $tIncrement, !5 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21DOCTYPE+html%3E%0A%3Chtml%3E%0A%3Chead%3E%0A%3Cmeta+charset%3Dutf-8+%2F%3E%0A%3Ctitle%3EJS+Bin%3C%2Ftitle%3E%0A++%3Cstyle+type%3D%22text%2Fcss%22%3E%0A++++table.tb+%7Bborder-collapse%3Acollapse%3B+width%3A100%25%3B+margin%3A0px+20px%3B%7D%0A++++table.tb+td+%7Bborder%3A1px+solid+red%3B+width%3A3%25%3B%7D%0A++++table.tb+th+%7Btext-align%3Aleft%3B+color%3Ablue%3B+%7D%0A++++th+span+%7Bmargin-left%3A-20px%3B%7D%3B%0A++++td+input%5Btype%3Dcheckbox%5D%3Achecked+%2B+span+%7Bcolor%3Agreen%3B%7D%0A++%3C%2Fstyle%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%0A++'
   16     1        INIT_FCALL                                               'error_reporting'
          2        SEND_VAL                                                 0
          3        DO_ICALL                                                 
   17     4        ASSIGN                                                   !0, 3
   18     5        ASSIGN                                                   !1, 18
   19     6        ASSIGN                                           ~9      !3, 1
          7        ASSIGN                                                   !2, ~9
   21     8        ECHO                                                     '%3Ctable+class%3D%22tb%22%3E'
   23     9      > JMP                                                      ->44
   25    10    >   ECHO                                                     '%3Ctr%3E'
   26    11        IS_EQUAL                                                 !2, 1
         12      > JMPZ                                                     ~11, ->36
   28    13    > > JMP                                                      ->33
   30    14    >   SUB                                              ~12     !3, 1
         15        MUL                                              ~13     ~12, 30
         16        ASSIGN                                                   !4, ~13
   31    17        INIT_FCALL                                               'date'
         18        SEND_VAL                                                 'H%3Ai'
         19        INIT_FCALL                                               'strtotime'
         20        ROPE_INIT                                     3  ~16     '08%3A00%2B+'
         21        ROPE_ADD                                      1  ~16     ~16, !4
         22        ROPE_END                                      2  ~15     ~16, '+minute'
         23        SEND_VAL                                                 ~15
         24        DO_ICALL                                         $18     
         25        SEND_VAR                                                 $18
         26        DO_ICALL                                         $19     
         27        ASSIGN                                                   !5, $19
   32    28        ROPE_INIT                                     3  ~22     '%3Cth%3E%3Cspan%3E'
         29        ROPE_ADD                                      1  ~22     ~22, !5
         30        ROPE_END                                      2  ~21     ~22, '%3C%2Fspan%3E%3C%2Fth%3E'
         31        ECHO                                                     ~21
   33    32        PRE_INC                                                  !3
   28    33    >   IS_SMALLER_OR_EQUAL                                      !3, !1
         34      > JMPNZ                                                    ~25, ->14
         35    > > JMP                                                      ->41
   39    36    > > JMP                                                      ->39
   41    37    >   ECHO                                                     '%3Ctd%3E%3Cinput+type%3D%22checkbox%22+name%3D%22slot%22+%3E%3Cspan%3Eslot%3C%2Fspan%3E%3C%2Ftd%3E'
   43    38        PRE_INC                                                  !3
   39    39    >   IS_SMALLER_OR_EQUAL                                      !3, !1
         40      > JMPNZ                                                    ~27, ->37
   46    41    >   ASSIGN                                                   !3, 1
   48    42        ECHO                                                     '%3C%2Ftr%3E'
   50    43        PRE_INC                                                  !2
   23    44    >   IS_SMALLER_OR_EQUAL                                      !2, !0
         45      > JMPNZ                                                    ~30, ->10
   53    46    >   ECHO                                                     '%3C%2Ftable%3E'
   55    47        ECHO                                                     '%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   56    48      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.72 ms | 1400 KiB | 19 Q