3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function reducea($a1,$b1){ return $b1; } $arr =array("dog","cat","milk"); print_r(array_reduce($arr,"reducea"));
based on Crsgv
Output for 4.3.0 - 7.2.0
milk