3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = [[], [], []]; $res = array_reduce(array_values($array), function ($isArray, $in) { $isArray &= is_array($in) ? 0 : 1; return $isArray; }, count($array) !== 0 ? 1 : 0); var_dump($res);
Output for 5.6.0 - 5.6.30, hhvm-3.18.4 - 3.21.0, 7.0.0 - 7.3.0rc3
int(0)