3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((new ReflectionObject(new DateInterval('PT3S')))->getProperties());
Output for git.master, git.master_jit, rfc.property-hooks
array(10) { [0]=> object(ReflectionProperty)#3 (2) { ["name"]=> string(1) "y" ["class"]=> string(12) "DateInterval" } [1]=> object(ReflectionProperty)#4 (2) { ["name"]=> string(1) "m" ["class"]=> string(12) "DateInterval" } [2]=> object(ReflectionProperty)#5 (2) { ["name"]=> string(1) "d" ["class"]=> string(12) "DateInterval" } [3]=> object(ReflectionProperty)#6 (2) { ["name"]=> string(1) "h" ["class"]=> string(12) "DateInterval" } [4]=> object(ReflectionProperty)#7 (2) { ["name"]=> string(1) "i" ["class"]=> string(12) "DateInterval" } [5]=> object(ReflectionProperty)#8 (2) { ["name"]=> string(1) "s" ["class"]=> string(12) "DateInterval" } [6]=> object(ReflectionProperty)#9 (2) { ["name"]=> string(1) "f" ["class"]=> string(12) "DateInterval" } [7]=> object(ReflectionProperty)#10 (2) { ["name"]=> string(6) "invert" ["class"]=> string(12) "DateInterval" } [8]=> object(ReflectionProperty)#11 (2) { ["name"]=> string(4) "days" ["class"]=> string(12) "DateInterval" } [9]=> object(ReflectionProperty)#12 (2) { ["name"]=> string(11) "from_string" ["class"]=> string(12) "DateInterval" } }

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:
40.58 ms | 404 KiB | 8 Q