3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lastWeek = new DateTime('last thursday'); $now = new DateTime(); var_dump($now->diff($lastWeek, true));
Output for git.master
object(DateInterval)#3 (10) { ["y"]=> int(0) ["m"]=> int(0) ["d"]=> int(5) ["h"]=> int(8) ["i"]=> int(42) ["s"]=> int(56) ["f"]=> float(0.030926) ["invert"]=> int(0) ["days"]=> int(5) ["from_string"]=> bool(false) }
Output for git.master_jit
object(DateInterval)#3 (10) { ["y"]=> int(0) ["m"]=> int(0) ["d"]=> int(5) ["h"]=> int(8) ["i"]=> int(42) ["s"]=> int(56) ["f"]=> float(0.004266) ["invert"]=> int(0) ["days"]=> int(5) ["from_string"]=> bool(false) }

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