3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $list = array(true,false,true,true); $count = array_count_values($list); var_dump($list);
Output for 4.3.2 - 7.1.0
Warning: array_count_values(): Can only count STRING and INTEGER values! in /in/Jcq0M on line 3 Warning: array_count_values(): Can only count STRING and INTEGER values! in /in/Jcq0M on line 3 Warning: array_count_values(): Can only count STRING and INTEGER values! in /in/Jcq0M on line 3 Warning: array_count_values(): Can only count STRING and INTEGER values! in /in/Jcq0M on line 3 array(4) { [0]=> bool(true) [1]=> bool(false) [2]=> bool(true) [3]=> bool(true) }
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/Jcq0M on line 3 Warning: array_count_values() [http://www.php.net/function.array-count-values]: Can only count STRING and INTEGER values! in /in/Jcq0M on line 3 Warning: array_count_values() [http://www.php.net/function.array-count-values]: Can only count STRING and INTEGER values! in /in/Jcq0M on line 3 Warning: array_count_values() [http://www.php.net/function.array-count-values]: Can only count STRING and INTEGER values! in /in/Jcq0M on line 3 array(4) { [0]=> bool(true) [1]=> bool(false) [2]=> bool(true) [3]=> bool(true) }