3v4l.org

run code in 300+ PHP versions simultaneously
<?php $interval = new DateInterval('P2Y4DT6H8M'); echo $interval->format('%y years'); echo $interval->format('%m months'); echo $interval->format('%d days'); echo $interval->format('%h hours'); echo $interval->format('%m minutes'); echo $interval->format('%s seconds');
Output for git.master, git.master_jit, rfc.property-hooks
2 years0 months4 days6 hours0 minutes0 seconds

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