3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ 'a' => 'some value', 'b' => 'some value', 'c' => 'some value' ]; $b = [ 'a' => 'another value', 'd' => 'another value', 'e' => 'another value', 'f' => 'another value' ]; $c = [ 'b' => 'some more value', 'x' => 'some more value', 'y' => 'some more value', 'z' => 'some more value' ]; $defaults = array_fill_keys(array_keys($a + $b + $c), ''); var_export( array_map(fn($row) => array_merge($defaults, $row), [$a, $b, $c]) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 'a' => 'some value', 'b' => 'some value', 'c' => 'some value', 'd' => '', 'e' => '', 'f' => '', 'x' => '', 'y' => '', 'z' => '', ), 1 => array ( 'a' => 'another value', 'b' => '', 'c' => '', 'd' => 'another value', 'e' => 'another value', 'f' => 'another value', 'x' => '', 'y' => '', 'z' => '', ), 2 => array ( 'a' => '', 'b' => 'some more value', 'c' => '', 'd' => '', 'e' => '', 'f' => '', 'x' => 'some more value', 'y' => 'some more value', 'z' => 'some more value', ), )

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:
97.08 ms | 407 KiB | 5 Q