3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function myfunction($v1,$v2) { return $v1 . "-" . $v2; } $a=array("Dog","Cat","Horse"); print_r(array_reduce($a,"myfunction")); ?>
based on FfMTV
Output for 4.3.3 - 7.1.0
-Dog-Cat-Horse
Output for 4.3.0 - 4.3.2
Dog-Cat-Horse