3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$interval = new DateInterval('PT0.123S'); //echo $interval->format('%f'); $date1 = new DateTime(); $date2 = new DateTime(); $foo = $date2->diff($date1); var_dump($foo->format('%f'));
Output for git.master
string(1) "6"
Output for git.master_jit
string(1) "7"
Output for rfc.property-hooks
string(1) "2"

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.24 ms | 401 KiB | 8 Q