3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo str_replace(' ', 'T', trim(gmdate('Y-m-d h:m:s'))) . date('P');
Output for 5.1.3 - 7.1.0
2014-05-14T10:05:31+02:00
Output for 4.3.0 - 5.1.2
2014-05-14T10:05:31P