3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row['date'] = '2018-07-21 11:14:19.678896'; $date = date_create_from_format('Y-m-d H:i:s.u', $row['date'], new DateTimeZone('UTC')); $date->setTimeZone(new DateTimeZone('Asia/Tehran')); $converted_date = $date->format('Y/m/d H:i:s'); echo $converted_date;
Output for git.master, git.master_jit, rfc.property-hooks
2018/07/21 15:44:19

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
133.88 ms | 405 KiB | 5 Q