3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt1 = new \DateTimeImmutable('2017-01-01T00:00:00.000000Z'); $dt2 = new \DateTimeImmutable('2017-01-01T00:00:00.123456Z'); $diff = $dt1->diff($dt2); //var_dump($diff); var_dump($diff->f); var_dump(get_object_vars($diff)['f']); var_dump($diff->f === get_object_vars($diff)['f']);
Output for git.master, git.master_jit, rfc.property-hooks
float(0.123456) float(0.123456) bool(true)

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