3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime("2014-03-07 15:30:00"); $diff = $now->diff(new DateTime()); var_dump(new DateTime()); echo $diff->format("%a");
Output for git.master
object(DateTime)#2 (3) { ["date"]=> string(26) "2014-03-09 20:31:13.003736" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2
Output for git.master_jit
object(DateTime)#2 (3) { ["date"]=> string(26) "2014-03-09 20:31:13.003933" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2
Output for rfc.property-hooks
object(DateTime)#2 (3) { ["date"]=> string(26) "2014-03-09 20:31:13.003811" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 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:
43.86 ms | 401 KiB | 8 Q