3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new DateInterval('P2Y4DT6H8M'); //manually, not from DateTime::diff() var_dump($a); // $a->days === false var_dump($a->days); // $a->days === -99999 ?! var_dump($a === false); // false
Output for git.master, git.master_jit, rfc.property-hooks
object(DateInterval)#1 (10) { ["y"]=> int(2) ["m"]=> int(0) ["d"]=> int(4) ["h"]=> int(6) ["i"]=> int(8) ["s"]=> int(0) ["f"]=> float(0) ["invert"]=> int(0) ["days"]=> bool(false) ["from_string"]=> bool(false) } bool(false) 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:
44.62 ms | 402 KiB | 8 Q