3v4l.org

run code in 300+ PHP versions simultaneously
<?php function workoutsunday($z) { $date = date('D', $z); if ($date=="Sun"){ $date1 = strtotime('-1 day', $z); return $date1; } else { return $z; } } workoutsunday('14-03-2014')
Output for 5.4.0 - 5.4.26
Parse error: syntax error, unexpected end of file in /in/WI8vu on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/WI8vu on line 13
Process exited with code 255.

preferences:
181.88 ms | 1395 KiB | 63 Q