3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date=date_create("2018-02-20 06:54:57"); echo date_format($date,"Y-m-d H:i:s"); echo "\n"; $tz=timezone_open("Asia/Kolkata"); date_timezone_set($date, $tz); echo date_format($date,"Y-m-d H:i:s");
based on ssiU3
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0rc3
2018-02-20 06:54:57 2018-02-20 11:24:57