3v4l.org

run code in 300+ PHP versions simultaneously
<?php $opening_time = "02 May 2019 - 03:10"; $closing_time = "12 May 2019 - 13:40"; $open = DateTime::createFromFormat("d M Y - H:i", $opening_time); $close = DateTime::createFromFormat("d M Y - H:i", $closing_time ); $diff = $close->getTimestamp() - $open->getTimestamp(); echo $opening_time."<br />\n"; echo $closing_time."<br />\n"; echo $diff;
Output for git.master, git.master_jit, rfc.property-hooks
02 May 2019 - 03:10<br /> 12 May 2019 - 13:40<br /> 901800

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:
153.29 ms | 405 KiB | 5 Q