3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $DateString = rawurldecode('Tue%20Oct%2015%202013%2001:00:00%20GMT+0100%20(BST)'); $DateString = substr(rawurldecode($DateString), 3, 19) . ':00'; echo $DateString; echo date('Y-m-d H:i:s', strtotime($DateString)); ?>
Output for 5.1.0 - 5.6.30, hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.2.0
Oct 15 2013 01:00::001970-01-01 01:00:00
Output for 4.3.0 - 5.0.5
Oct 15 2013 01:00::001970-01-01 00:59:59