3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mergedArray = [ 'story' => 10, 'image' => 20, 'video' => 30, 'audio' => 40, ]; array_walk($mergedArray, function (&$value, $key) { $value = ucwords($key) . "($value)"; }); print_r($mergedArray);
Output for git.master_jit, git.master, rfc.property-hooks
Array ( [story] => Story(10) [image] => Image(20) [video] => Video(30) [audio] => Audio(40) )

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