3v4l.org

run code in 300+ PHP versions simultaneously
<?php $k = (string)"0"; $a = array( 'name' => 'a', $k => 'null' ); $b = array( 'name' => 'b', $k => 'zero' ); $b = array( $k => 'zeronull', 'name' => 'b' ); var_dump($a); var_dump($b); var_dump($c); var_dump(array_merge($a, $b)); var_dump(array_merge($a, $c)); var_dump(array_merge($a, $b, $c));
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { ["name"]=> string(1) "a" [0]=> string(4) "null" } array(2) { [0]=> string(8) "zeronull" ["name"]=> string(1) "b" } Warning: Undefined variable $c in /in/WTr0J on line 10 NULL array(3) { ["name"]=> string(1) "b" [0]=> string(4) "null" [1]=> string(8) "zeronull" } Warning: Undefined variable $c in /in/WTr0J on line 12 Fatal error: Uncaught TypeError: array_merge(): Argument #2 must be of type array, null given in /in/WTr0J:12 Stack trace: #0 /in/WTr0J(12): array_merge(Array, NULL) #1 {main} thrown in /in/WTr0J on line 12
Process exited with code 255.

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