3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array('1' => '1', '2' => '2'); $multi = array('1' => array('2' => '2'), '2' => array('3' => '3')); $c = count($array, 1); var_dump($c); $c = count($multi, 1);
Output for 4.3.0 - 7.2.0
int(2)