3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // format: 08:25:50 Feb 20, 2014 PST $payment_date = "08:25:50 Feb 20, 2014 PST"; $payment_date = trim(str_replace('PST', '', $payment_date)); $date_time = date_create_from_format('H:i:s M d# Y', $payment_date, new DateTimeZone('PST')); if($date_time) echo $date_time->format('U'); else echo 'got fucked!'; } ?>
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected '}' in /in/TJKC0 on line 15
Process exited with code 255.