3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array( 10, 10, 10, 5.50, 2.75, 2.75, 2.75, ); var_dump(array_count_values($arr));
based on YcuOB
Output for 4.3.2 - 7.2.0
Warning: array_count_values(): Can only count STRING and INTEGER values! in /in/r0GUE on line 13 Warning: array_count_values(): Can only count STRING and INTEGER values! in /in/r0GUE on line 13 Warning: array_count_values(): Can only count STRING and INTEGER values! in /in/r0GUE on line 13 Warning: array_count_values(): Can only count STRING and INTEGER values! in /in/r0GUE on line 13 array(1) { [10]=> int(3) }
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/r0GUE on line 13 Warning: array_count_values() [http://www.php.net/function.array-count-values]: Can only count STRING and INTEGER values! in /in/r0GUE on line 13 Warning: array_count_values() [http://www.php.net/function.array-count-values]: Can only count STRING and INTEGER values! in /in/r0GUE on line 13 Warning: array_count_values() [http://www.php.net/function.array-count-values]: Can only count STRING and INTEGER values! in /in/r0GUE on line 13 array(1) { [10]=> int(3) }