3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $counter = function ($carry, array $item) { return $carry + count($item); }; $recommendations = [ ]; $res = array_reduce($recommendations, $counter, 0); var_dump($res);
based on 1VTWD
Output for 5.6.0 - 7.3.0alpha1
int(0)