3v4l.org

run code in 300+ PHP versions simultaneously
<?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); ?>
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.5.24 - 5.5.30, 5.6.8 - 5.6.16
Parse error: syntax error, unexpected ':' in /in/5dBsL on line 5
Process exited with code 255.

preferences:
166.53 ms | 1387 KiB | 25 Q