3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ["one" => 1, "two-two" => 2, "four" => 4], ["two-two" => 22, "three" => 33, "four" => 44] ]; var_export( array_reduce( array_keys(array_merge(...$array)), function($result, $key) { $result[$key] = ucwords(str_replace(['_', '-'], ' ', $key)); return $result; } ) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 'one' => 'One', 'two-two' => 'Two Two', 'four' => 'Four', 'three' => 'Three', )

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:
24.04 ms | 405 KiB | 5 Q