3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<!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 content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>Kalender</title> <link rel="stylesheet" href="./style.css" type="text/css"/> <script language="JavaScript1.4" type="text/javascript" src="/5582864login/z9z5hj8sezfrh635rzh86d53gh37/nav.js"></script> <script language="javascript" type="text/javascript" src="/5582864login/z9z5hj8sezfrh635rzh86d53gh37/navi.js"></script> </head> <body> <div align="center"> <h2>Kalender</h2> <?php $action = $_GET['action']; if($action == 'go') { $monthgo = $_POST['monthgo']; $yeargo = $_POST['yeargo']; echo '<meta http-equiv="refresh" content="0; URL=?month='.$monthgo.'&year='.$yeargo.'">'; } // imagelink $linkhref = 'onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\''; $linkhrefend = '\',\'\',\'./template/images/'; $linkhrefendend = '.gif\',1)"'; $imghref = 'onLoad="MM_preloadImages(\'./template/images/'; $imghrefend = '.gif\')"'; // imagelink End $month = isset($_GET['month']) ? intval($_GET['month']) : date('n'); $year = isset($_GET['year']) ? intval($_GET['year']) : date('Y'); $weekdays = array('Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'); $months = array('01' => 'Januar', '02' => 'Februar', '03' => 'März', '04' => 'April', '05' => 'Mai', '06' => 'Juni', '07' => 'Juli', '08' => 'August', '09' => 'September', '10' => 'Oktober', '11' => 'November', '12' => 'Dezember'); $options['today_class'] = "background-color:#FFFF00;"; $prev_symbol = "«"; $next_symbol = "»"; $caption = "Kalender"; $options['month_link'] = '<a href="'.$_SERVER['PHP_SELF'].'?month=%d&amp;year=%d">%s</a>'; $total_days = date('t', mktime(0, 0, 0, $month, 1, $year)); $day_offset = date('w', mktime(0, 0, 0, $month, 1, $year)); $wochentag = date('W', mktime(0, 0, 0, $month, 1, $year)); list($n_month, $n_year, $n_day) = split(', ', strftime('%m, %Y, %d')); $day_highlight = (($n_month == $month) && ($n_year == $year)); list($n_prev_month, $n_prev_year) = split(', ', strftime('%m, %Y', mktime(0, 0, 0, $month-1, 1, $year))); $prev_month_link = sprintf($options['month_link'], $n_prev_month, $n_prev_year, $prev_symbol); list($n_next_month, $n_next_year) = split(', ', strftime('%m, %Y', mktime(0, 0, 0, $month+1, 1, $year))); $next_month_link = sprintf($options['month_link'], $n_next_month, $n_next_year, $next_symbol); echo '<form action="?action=go" method="post">Monat <input class="datum" type="text" name="monthgo" value="'.$month.'"/> im Jahr <input class="datum" type="text" name="yeargo" value="'.$year.'"/> <input type="submit" name="submit" value="anzeigen"/></form>'; echo '<br/> <table align="center" border="1"> <thead> <tr> <th align="center" onclick="location.href=\'?month='.$n_prev_month.'&year='.$n_prev_year.'\'">'.$prev_symbol.'</th> <th colspan="5" align="center">'.$months[strftime('%m', mktime(0, 0, 0, $month, 1, $year))].' '.$year.'</th> <th align="center" onclick="location.href=\'?month='.$n_next_month.'&year='.$n_next_year.'\'">'.$next_symbol.'</th> </tr>'; echo "<tr>\n"; foreach ($weekdays as $weekday) { echo "\t"; echo "<th width=\"14,3%\" align=\"center\">".$weekday."</th>\n"; echo "\n"; } echo "\n"; echo "\n"; echo "</tr></thead><tbody>\n"; echo "<tr>\n"; if ($day_offset > 0) { for ($i=0; $i<$day_offset; $i++) { echo "\t"; echo '<td align="center" class="empty_cell">'; echo "\n"; } } for ($day=1; $day<=$total_days; $day++) { if ($day_highlight && ($day == $n_day)) { echo "\t"; echo '<td align="center" width=\"14,3%\" id="day_'.$day.'" style="'.$options['today_class'].'"><a target="rechts" href="/5582864login/z9z5hj8sezfrh635rzh86d53gh37/manager.php?action=newgig&month='.$month.'&year='.$year.'&day='.$day.'">'.$day.'</a>'; echo "\n"; } else { $$dayw = $day; include('./config.php'); $read_out = mysql_query("Select * From gigmanager"); while ($rew = mysql_fetch_array($read_out, MYSQL_ASSOC)) { if($day == '1'){ $dayto = "0$day";} else { $dayto = "$day";} if($day == '2'){ $dayto = "0$day";} if($day == '3'){ $dayto = "0$day";} if($day == '4'){ $dayto = "0$day";} if($day == '5'){ $dayto = "0$day";} if($day == '6'){ $dayto = "0$day";} if($day == '7'){ $dayto = "0$day";} if($day == '8'){ $dayto = "0$day";} if($day == '9'){ $dayto = "0$day";} if($month == '1'){ $monthto = "0$month";} else { $monthto = "$month";} if($month == '2'){ $monthto = "0$month";} if($month == '3'){ $monthto = "0$month";} if($month == '4'){ $monthto = "0$month";} if($month == '5'){ $monthto = "0$month";} if($month == '6'){ $monthto = "0$month";} if($month == '7'){ $monthto = "0$month";} if($month == '8'){ $monthto = "0$month";} if($month == '9'){ $monthto = "0$month";} $date = "$dayto.$monthto.$year"; if($rew['date'] == $date) { $frage = mysql_query("Select vorname From login Where username='".$rew['von']."'"); $raw = mysql_fetch_object($frage); $katego = $rew['kategorie']; if($katego == '0') {$kategorie = 'Gigoption';} if($katego == '1') {$kategorie = 'Gig';} if($katego == '2') {$kategorie = ''.$raw->vorname.' Verhindert';} if($katego == '3') {$kategorie = 'Probe';} if($katego == '5') {$kategorie = 'Einladung / sonstiges';} $dayw = $day; echo "\t"; echo '<td width=\"14,3%\" onclick="location.href=\'/5582864login/z9z5hj8sezfrh635rzh86d53gh37/manager.php?action=lookgig&id='.$rew['id'].'\'" align="center" title="'.$kategorie.': '.$rew['name'].'" class="day'.$rew['kategorie'].'" id="day_'.$day.'">'.$day.'</td>'; echo "\n"; $$dayw = 0; } } if($$dayw != 0) { echo "\t"; echo '<td width=\"14,3%\" title="kein Termin vorhanden" align="center" class="day" id="day_'.$day.'">'.$day.'</td>'; echo "\n"; } } $day_offset++; if ($day_offset == 7) { $day_offset = 0; if ($day < $total_days) { echo "</tr>\n<tr>"; } } } if ($day_offset > 0) { $day_offset = 7-$day_offset; } if ($day_offset > 0) { for ($i=0; $i< $day_offset; $i++) { echo '<td class="empty_cell">'; echo "\n"; } } echo '</td></tr></tbody></table><br/><br/>';<?php
Output for 5.3.0 - 5.4.24
Parse error: syntax error, unexpected '<' in /in/HsDMb on line 177
Process exited with code 255.