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);

preferences:
27.17 ms | 405 KiB | 5 Q