3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( date_diff(date_create_from_format('Y-m-d H:i:s', '2015-11-10 12:30:00'), date_create('now'))->format('d') ); var_dump(date_create('now'));
Output for git.master
string(1) "d" object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-11 13:40:14.003654" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for git.master_jit
string(1) "d" object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-11 13:40:14.003957" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for rfc.property-hooks
string(1) "d" object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-11 13:40:14.004907" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }

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:
61.18 ms | 401 KiB | 8 Q