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 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

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.240.3700.03319.11
5.4.230.4100.04319.21
5.4.220.3870.04019.11
5.4.210.4130.03318.95
5.4.200.4830.04018.91
5.4.190.4030.03318.95
5.4.180.4200.03719.00
5.4.170.4500.04018.94
5.4.160.4570.03718.93
5.4.150.4700.03719.02
5.4.140.4200.03716.45
5.4.130.4000.04016.48
5.4.120.3770.03716.54
5.4.110.4930.03016.50
5.4.100.4600.04316.37
5.4.90.4030.04316.56
5.4.80.4400.03716.54
5.4.70.3830.03716.27
5.4.60.4100.04016.50
5.4.50.4000.03316.28
5.4.40.4100.04716.38
5.4.30.3930.04016.53
5.4.20.4030.03016.47
5.4.10.4000.04016.54
5.4.00.3970.04015.97
5.3.280.3930.03714.59
5.3.270.4900.03014.60
5.3.260.3830.03714.76
5.3.250.4430.03714.59
5.3.240.4430.03314.61
5.3.230.4330.03714.68
5.3.220.3770.04314.57
5.3.210.4730.04014.60
5.3.200.4370.03014.46
5.3.190.4330.03714.60
5.3.180.4200.02714.61
5.3.170.3900.04314.58
5.3.160.4230.03714.65
5.3.150.3770.04014.60
5.3.140.4170.03714.57
5.3.130.4070.04014.54
5.3.120.4130.03314.70
5.3.110.3870.03314.57
5.3.100.3970.04314.05
5.3.90.3870.04014.04
5.3.80.4300.03313.90
5.3.70.4100.03714.02
5.3.60.4100.03013.99
5.3.50.4030.03713.99
5.3.40.3800.03713.80
5.3.30.2030.03013.81
5.3.20.0000.04013.57
5.3.10.4800.03713.54
5.3.00.4870.03713.53

preferences:
133.38 ms | 1394 KiB | 7 Q