3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = json_decode('{"Name":"Consultation", "ServiceId":"1024", "Price":".00"}'); $b = json_decode('{"StartTime": "9:15AM", "ServiceId": "1024"}'); $c = (object)array_merge((array)$a, (array)$b); var_dump($c); $a = json_decode('{"Name":"Consultation", "ServiceId":"1024", "Price":".00"}', true); $b = json_decode('{"StartTime": "9:15AM", "ServiceId": "1024"}', true); $c = array_merge($a, $b); var_dump($c);
Output for git.master, git.master_jit, rfc.property-hooks
object(stdClass)#3 (4) { ["Name"]=> string(12) "Consultation" ["ServiceId"]=> string(4) "1024" ["Price"]=> string(3) ".00" ["StartTime"]=> string(6) "9:15AM" } array(4) { ["Name"]=> string(12) "Consultation" ["ServiceId"]=> string(4) "1024" ["Price"]=> string(3) ".00" ["StartTime"]=> string(6) "9:15AM" }

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:
25.35 ms | 402 KiB | 8 Q