3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dtz = new DateTimeZone('Europe/Moscow'); $date = new DateTime("2018-11-14 00:00:00", $dtz); $time_from = new DateTime("1970-01-01 15:00:00", $dtz); $time_to = new DateTime("1970-01-01 16:00:00", $dtz); $date_from = new DateTime( $date->format('Y-m-d') . ' ' . $time_from->format('H:i:sP') , $dtz ); echo $date_from->format('Y-m-d H:i:sP') . "\n"; echo $date_from->getTimestamp();
Output for git.master_jit, git.master, rfc.property-hooks
2018-11-14 15:00:00+03:00 1542196800

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:
61.01 ms | 401 KiB | 8 Q