3v4l.org

run code in 300+ PHP versions simultaneously
<?php $old = ['created' => new \DateTime()]; $new = ['created' => new \DateTime('+1 minute')]; $changeset = array_merge($old, $new); var_dump($changeset, $changeset['created'] instanceof \DateTime);
Output for git.master
array(1) { ["created"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2015-11-02 15:04:10.003543" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(true)
Output for git.master_jit
array(1) { ["created"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2015-11-02 15:04:10.003862" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(true)
Output for rfc.property-hooks
array(1) { ["created"]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2015-11-02 15:04:10.003789" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } bool(true)

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