3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ "story" => 10, "image" => 20, "video" => 30, "audio" => 40 ]; foreach($arr as $key => $value) { $arr[$key] = ucfirst($key)." (".$value.")"; } print_r($arr);
Output for git.master, git.master_jit, 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:
115.06 ms | 405 KiB | 5 Q