3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function make_uppercase(&$word) { $word = strtoupper ($word); return $word; } $fish = array ( "hampala ampalong", "hampala macrolipedota" ); print_r ( array_map ("make_uppercase", $fish) );
based on ac1ZT
Output for 5.6.0 - 7.3.0alpha1
Array ( [0] => HAMPALA AMPALONG [1] => HAMPALA MACROLIPEDOTA )