3v4l.org

run code in 300+ PHP versions simultaneously
<?php $datetime1 = date_create('2014-09-24 11:30:00'); $datetime2 = date_create('2014-09-26 12:35:00'); $interval = date_diff($datetime2, $datetime1); print_r($interval);
Output for git.master, git.master_jit, rfc.property-hooks
DateInterval Object ( [y] => 0 [m] => 0 [d] => 2 [h] => 1 [i] => 5 [s] => 0 [f] => 0 [invert] => 1 [days] => 2 [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:
45 ms | 401 KiB | 8 Q