3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Prague'); $t1 = \DateTime::createFromFormat('Y-m-d H:i:s', '2017-08-30 17:05:29'); $t2 = \DateTime::createFromFormat('Y-m-d H:i:s', '2017-11-30 16:50:59'); $i = $t2->diff($t1); echo "DIFF: {$i->m}mon {$i->d}day {$i->h}hrs {$i->i}min {$i->s}sec";
Output for git.master, git.master_jit, rfc.property-hooks
DIFF: 2mon 30day 23hrs 45min 30sec

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