3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Using Tabs With PHP</title> <style> .link{ font-family:tahoma; font-size:11px; font-weight:bold; color:white; text-decoration:none; } </style> </head> <body> <? $id=$_REQUEST['id']; $links=array(); $links[]="Home"; $links[]="Services"; $links[]="Products"; $links[]="Downloads"; $links[]="Contact Us"; $total_links=count($links); ?> <table cellpadding="0px" cellspacing="0"> <tr> <td width="30px">&nbsp;</td> <? for($i=0;$i<$total_links;$i++){ if($i+1==$id){ ?> <td style="padding-left:3px"> <table cellpadding="0" cellspacing="0"> <tr height="28px"> <td width="15px"><img src="images/selected-left.gif" /></td> <td style="background-image:url(images/selected.gif);" class="link"><?=$links[$i]?></td> <td width="15px"><img src="images/selected-right.gif" /></td> </tr> </table> </td> <? } else { ?> <td style="padding-left:3px"> <table cellpadding="0" cellspacing="0"> <tr height="28px"> <td width="13px"><img src="images/tab-left.gif" /></td> <td style="background-image:url(images/tab.gif);"><a href="?id=<?=$i+1?>" class="link"><?=$links[$i]?></a></td> <td width="13px"><img src="images/tab-right.gif" /></td> </tr> </table> </td> <? } // else end } //for end ?> <td width="30px">&nbsp;</td> </tr> <tr> <td colspan="<?=$total_links+2?>" bgcolor="#1895D5">&nbsp;</td> </tr> <tr> <td colspan="<?=$total_links+2?>" style="border:1px #1895D5 solid;"> <h1 style="color:#1895D5">The text for linkid<?=$id?> goes here ...</h1> </td> </tr> </table> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 20
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 28
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 20
Branch analysis from position: 38
Branch analysis from position: 20
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 20
Branch analysis from position: 38
Branch analysis from position: 20
filename:       /in/mvNN8
function name:  (null)
number of ops:  48
compiled vars:  !0 = $id, !1 = $links, !2 = $total_links, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21DOCTYPE+html+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+XHTML+1.0+Transitional%2F%2FEN%22+%22http%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-transitional.dtd%22%3E+%0A%3Chtml+xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%3E+%0A%3Chead%3E+%0A%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3Diso-8859-1%22+%2F%3E+%0A%0A%3Ctitle%3EUsing+Tabs+With+PHP%3C%2Ftitle%3E+%0A%3Cstyle%3E+%0A.link%7B+%0A++font-family%3Atahoma%3B+%0A++font-size%3A11px%3B+%0A++font-weight%3Abold%3B+%0A%0A++color%3Awhite%3B+%0A++text-decoration%3Anone%3B+%0A%7D+%0A%3C%2Fstyle%3E+%0A%3C%2Fhead%3E+%0A++%0A%3Cbody%3E+%0A'
   21     1        FETCH_R                      global              ~4      '_REQUEST'
          2        FETCH_DIM_R                                      ~5      ~4, 'id'
          3        ASSIGN                                                   !0, ~5
   23     4        ASSIGN                                                   !1, <array>
   26     5        ASSIGN_DIM                                               !1
          6        OP_DATA                                                  'Home'
   27     7        ASSIGN_DIM                                               !1
          8        OP_DATA                                                  'Services'
   28     9        ASSIGN_DIM                                               !1
         10        OP_DATA                                                  'Products'
   30    11        ASSIGN_DIM                                               !1
         12        OP_DATA                                                  'Downloads'
   31    13        ASSIGN_DIM                                               !1
         14        OP_DATA                                                  'Contact+Us'
   33    15        COUNT                                            ~13     !1
         16        ASSIGN                                                   !2, ~13
   35    17        ECHO                                                     '+%0A++%3Ctable+cellpadding%3D%220px%22+cellspacing%3D%220%22%3E+%0A%0A++++%3Ctr%3E+%0A++++++%3Ctd+width%3D%2230px%22%3E%26nbsp%3B%3C%2Ftd%3E+%0A'
   41    18        ASSIGN                                                   !3, 0
         19      > JMP                                                      ->36
   42    20    >   ADD                                              ~16     !3, 1
         21        IS_EQUAL                                                 !0, ~16
         22      > JMPZ                                                     ~17, ->28
   43    23    >   ECHO                                                     '+%0A++++++%3Ctd+style%3D%22padding-left%3A3px%22%3E+%0A%0A++%3Ctable+cellpadding%3D%220%22+cellspacing%3D%220%22%3E+%0A++++%3Ctr+height%3D%2228px%22%3E+%0A%0A++++++%3Ctd+width%3D%2215px%22%3E%3Cimg+src%3D%22images%2Fselected-left.gif%22+%2F%3E%3C%2Ftd%3E+%0A++++++%3Ctd+style%3D%22background-image%3Aurl%28images%2Fselected.gif%29%3B%22+class%3D%22link%22%3E'
   50    24        FETCH_DIM_R                                      ~18     !1, !3
         25        ECHO                                                     ~18
         26        ECHO                                                     '%3C%2Ftd%3E+%0A%0A++++++%3Ctd+width%3D%2215px%22%3E%3Cimg+src%3D%22images%2Fselected-right.gif%22+%2F%3E%3C%2Ftd%3E+%0A++++%3C%2Ftr%3E+%0A%0A++%3C%2Ftable%3E+%0A++++++%3C%2Ftd%3E+%0A++++++'
         27      > JMP                                                      ->35
   57    28    >   ECHO                                                     '+%0A++++++%3Ctd+style%3D%22padding-left%3A3px%22%3E+%0A++%3Ctable+cellpadding%3D%220%22+cellspacing%3D%220%22%3E+%0A%0A++++%3Ctr+height%3D%2228px%22%3E+%0A++++++%3Ctd+width%3D%2213px%22%3E%3Cimg+src%3D%22images%2Ftab-left.gif%22+%2F%3E%3C%2Ftd%3E+%0A%0A++++++%3Ctd+style%3D%22background-image%3Aurl%28images%2Ftab.gif%29%3B%22%3E%3Ca+href%3D%22%3Fid%3D'
   64    29        ADD                                              ~19     !3, 1
         30        ECHO                                                     ~19
         31        ECHO                                                     '%22+class%3D%22link%22%3E'
         32        FETCH_DIM_R                                      ~20     !1, !3
         33        ECHO                                                     ~20
         34        ECHO                                                     '%3C%2Fa%3E%3C%2Ftd%3E+%0A%0A++++++%3Ctd+width%3D%2213px%22%3E%3Cimg+src%3D%22images%2Ftab-right.gif%22+%2F%3E%3C%2Ftd%3E+%0A++++%3C%2Ftr%3E+%0A%0A++%3C%2Ftable%3E+%0A++++++%3C%2Ftd%3E+%0A++++++'
   41    35    >   PRE_INC                                                  !3
         36    >   IS_SMALLER                                               !3, !2
         37      > JMPNZ                                                    ~22, ->20
   74    38    >   ECHO                                                     '+%0A++++++%3Ctd+width%3D%2230px%22%3E%26nbsp%3B%3C%2Ftd%3E+%0A++++%3C%2Ftr%3E+%0A%0A++++%3Ctr%3E+%0A++++++%3Ctd+colspan%3D%22'
   79    39        ADD                                              ~23     !2, 2
         40        ECHO                                                     ~23
         41        ECHO                                                     '%22+bgcolor%3D%22%231895D5%22%3E%26nbsp%3B%3C%2Ftd%3E+%0A++++%3C%2Ftr%3E+%0A%0A++++%3Ctr%3E+%0A++++++%3Ctd+colspan%3D%22'
   83    42        ADD                                              ~24     !2, 2
         43        ECHO                                                     ~24
         44        ECHO                                                     '%22+style%3D%22border%3A1px+%231895D5+solid%3B%22%3E+%0A++++++++%3Ch1+style%3D%22color%3A%231895D5%22%3EThe+text+for+linkid'
   84    45        ECHO                                                     !0
         46        ECHO                                                     '+goes+here+...%3C%2Fh1%3E+%0A%0A++++++%3C%2Ftd%3E+%0A++++%3C%2Ftr%3E+%0A++%3C%2Ftable%3E+%0A%3C%2Fbody%3E+%0A%3C%2Fhtml%3E'
   90    47      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.36 ms | 1399 KiB | 13 Q