3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array(array('1'=>1,'2'=>2),array('1'=>2,'2'=>3),array('1'=>1,'2'=>3)); print var_dump(array_count_values($arr));
Output for 4.3.2 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_count_values(): Can only count STRING and INTEGER values! in /in/mtG9A on line 5 Warning: array_count_values(): Can only count STRING and INTEGER values! in /in/mtG9A on line 5 Warning: array_count_values(): Can only count STRING and INTEGER values! in /in/mtG9A on line 5 array(0) { }
Output for hhvm-3.10.0 - 3.12.0
Warning: Can only count STRING and INTEGER values! in /in/mtG9A on line 5 Warning: Can only count STRING and INTEGER values! in /in/mtG9A on line 5 Warning: Can only count STRING and INTEGER values! in /in/mtG9A on line 5 array(0) { }
Output for 4.3.0 - 4.3.1
Warning: array_count_values() [http://www.php.net/function.array-count-values]: Can only count STRING and INTEGER values! in /in/mtG9A on line 5 Warning: array_count_values() [http://www.php.net/function.array-count-values]: Can only count STRING and INTEGER values! in /in/mtG9A on line 5 Warning: array_count_values() [http://www.php.net/function.array-count-values]: Can only count STRING and INTEGER values! in /in/mtG9A on line 5 array(0) { }