3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( // Look ma, it's an array 'foo' => '1', 'bar' => '2', 'baz' => '3', 'zip' => '1'); var_dump(array_count_values($array));
Output for 4.3.0 - 4.4.9, 5.0.2 - 7.1.0
array(3) { [1]=> int(2) [2]=> int(1) [3]=> int(1) }
Output for 5.0.0 - 5.0.1
array(3) { ["1"]=> int(2) ["2"]=> int(1) ["3"]=> int(1) }