3v4l.org

run code in 300+ PHP versions simultaneously
<?php $one = new DateTime('2015-11-15 07:00:57'); $two = new DateTime('2016-01-08 04:04:35'); echo $two->getTimestamp() - $one->getTimestamp(); print_r($one->diff($two));
Output for git.master, git.master_jit, rfc.property-hooks
4655018DateInterval Object ( [y] => 0 [m] => 1 [d] => 23 [h] => 21 [i] => 3 [s] => 38 [f] => 0 [invert] => 0 [days] => 53 [from_string] => )

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