3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ny_time = "06:59 pm"; $utc_time = strtotime("+5 hours", strtotime($ny_time)); echo date('h:i a', $utc_time); // output 05:30 am echo strtotime(07:00 pm); ?>
based on cOqgD
Output for 7.0.0 - 7.0.1
Parse error: syntax error, unexpected ':', expecting ',' or ')' in /in/5dBsL on line 5
Process exited with code 255.
Output for 5.3.21 - 5.6.16
Parse error: syntax error, unexpected ':' in /in/5dBsL on line 5
Process exited with code 255.