3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Filename = "SSPCAEvent" . $_GET['ID'] . ".vcs" header("Content-Type: text/x-vCalendar"); header("Content-Disposition: inline; filename=$Filename"); /** Put mysql connection and query statements here **/ $DescDump = str_replace("\r", "=0D=0A=", $row['Detail']); $vCalStart = date("Ymd\THi00", $row['EventStart']); $vCalEnd = date("Ymd\THi00", $row['EventEnd']); ?> BEGIN:VCALENDAR VERSION:1.0 PRODID:SSPCA Web Calendar TZ:-07 BEGIN:VEVENT SUMMARY:<?php echo $row['Summary'] . "\n"; ?> DESCRIPTION;ENCODING=QUOTED-PRINTABLE: <?php echo $DescDump . "\n"; ?> DTSTART:<?php echo $vCalStart . "\n"; ?> DTEND:<?php echo $vCalEnd . "\n"; ?> END:VEVENT END:VCALENDAR
Output for 5.4.0 - 5.4.18
Parse error: syntax error, unexpected 'header' (T_STRING) in /in/h6pGG on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_STRING in /in/h6pGG on line 3
Process exited with code 255.

preferences:
176.1 ms | 1395 KiB | 54 Q