3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $shift = array(); $format = 'Y-m-d H:i:s'; $shift['start'] = DateTime::createFromFormat($format, date('Y-m-d') . ' 6:00:00', new DateTimeZone("Asia/Tokyo")); var_dump($shift);
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
array(1) { ["start"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2017-07-07 06:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(10) "Asia/Tokyo" } }