3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = date_create('2018-07-17T20:00:00Z', timezone_open('UTC')); echo date_format($date, 'Y-m-d H:i:sP') . "\n"; date_timezone_set($date, timezone_open('America/New_York')); echo date_format($date, 'Y-m-d H:i:s') . "\n";
based on oO2UL
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.3.0rc3
2018-07-17 20:00:00+00:00 2018-07-17 16:00:00