3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new DateInterval('P1D'); var_dump($dt); echo "\n\n-------------\n\n"; $st = serialize($dt); echo "\n\n-------------\n\n"; var_dump($st); echo "\n\n-------------\n\n"; var_dump($dt->days); ?>
Output for git.master, git.master_jit, rfc.property-hooks
object(DateInterval)#1 (10) { ["y"]=> int(0) ["m"]=> int(0) ["d"]=> int(1) ["h"]=> int(0) ["i"]=> int(0) ["s"]=> int(0) ["f"]=> float(0) ["invert"]=> int(0) ["days"]=> bool(false) ["from_string"]=> bool(false) } ------------- ------------- string(164) "O:12:"DateInterval":10:{s:1:"y";i:0;s:1:"m";i:0;s:1:"d";i:1;s:1:"h";i:0;s:1:"i";i:0;s:1:"s";i:0;s:1:"f";d:0;s:6:"invert";i:0;s:4:"days";b:0;s:11:"from_string";b:0;}" ------------- 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:
51.16 ms | 402 KiB | 8 Q