3v4l.org

run code in 300+ PHP versions simultaneously
<?php $one = array( 4158 => array( 'raw' => 'something', 'rendered' => 'something else', ), 'foo' => 'string', 'bar' => array( 'key' => 'value', 'baz' => 100, ), ); $two = array( 4158 => array( 'protected' => 'has a password', ), 'bar' => array( 'zzz' => 'yo', ), 'go' => 'Cubs', ); $temp = $one + (array) $two; var_dump( $temp );
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { [4158]=> array(2) { ["raw"]=> string(9) "something" ["rendered"]=> string(14) "something else" } ["foo"]=> string(6) "string" ["bar"]=> array(2) { ["key"]=> string(5) "value" ["baz"]=> int(100) } ["go"]=> string(4) "Cubs" }

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.38 ms | 401 KiB | 8 Q