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()); var_dump(date_create_from_format('Y-m-d H:i:s', '2015-11-10 12:30:00'));
Output for git.master
string(1) "d" object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-11 13:40:40.003734" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-10 12:30:00.000000" ["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:40.003726" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-10 12:30:00.000000" ["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:40.003686" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-10 12:30:00.000000" ["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:
62.7 ms | 401 KiB | 8 Q