3v4l.org

run code in 150+ 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 date('Y-m-d H:i:s', strtotime($DateString)); ?>
Output for 5.1.0 - 7.1.0
1970-01-01 01:00:00
Output for 4.3.0 - 5.0.5
1970-01-01 00:59:59