3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array("", "", "", "", "", "", ""); function arrayIsEmpty ($arr) { $emptyCount = 0; foreach ($arr as $item) { if (empty($item)) { $emptyCount++; } } return $emptyCount === count($arr) + 1; } var_dump(count($arr));
based on llLr7
Output for 5.6.38 - 7.3.0rc3
int(7)