3v4l.org

run code in 300+ PHP versions simultaneously
<?php $old = ['created' => new \DateTime()]; $new = ['created' => new \DateTime('+1 minute')]; $changeset = array_merge_recursive($old, $new); var_dump($changeset);
Output for git.master
array(1) { ["created"]=> array(3) { ["date"]=> array(2) { [0]=> string(26) "2021-09-14 16:26:05.003664" [1]=> string(26) "2021-09-14 16:27:05.003680" } ["timezone_type"]=> array(2) { [0]=> int(3) [1]=> int(3) } ["timezone"]=> array(2) { [0]=> string(16) "Europe/Amsterdam" [1]=> string(16) "Europe/Amsterdam" } } }
Output for git.master_jit
array(1) { ["created"]=> array(3) { ["date"]=> array(2) { [0]=> string(26) "2021-09-14 16:26:05.003777" [1]=> string(26) "2021-09-14 16:27:05.003793" } ["timezone_type"]=> array(2) { [0]=> int(3) [1]=> int(3) } ["timezone"]=> array(2) { [0]=> string(16) "Europe/Amsterdam" [1]=> string(16) "Europe/Amsterdam" } } }
Output for rfc.property-hooks
array(1) { ["created"]=> array(3) { ["date"]=> array(2) { [0]=> string(26) "2021-09-14 16:26:05.003531" [1]=> string(26) "2021-09-14 16:27:05.003543" } ["timezone_type"]=> array(2) { [0]=> int(3) [1]=> int(3) } ["timezone"]=> array(2) { [0]=> string(16) "Europe/Amsterdam" [1]=> 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:
63.29 ms | 401 KiB | 8 Q