3v4l.org

run code in 300+ PHP versions simultaneously
<?php $last = "2018-04-10 20:00:00"; $now = new DateTime(); $last_dt = new DateTime($last); $difference = $last_dt->diff($now); $difference->format('%d'); $num_of_days = $difference->m; echo "Difference: ".$difference->m." months and ".$difference->d." days, or ".$difference->days." in total";
Output for git.master, git.master_jit, rfc.property-hooks
Difference: 5 months and 4 days, or 157 in total

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:
28.35 ms | 405 KiB | 5 Q