3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array( array('a' => 1, 'b' => 2), array('a' => 1, 'b' => 2), array('a' => 2, 'b' => 3)); echo array_count_values($arr);
Output for 5.4.0 - 7.1.7
Warning: array_count_values(): Can only count STRING and INTEGER values! in /in/NrjC3 on line 5 Warning: array_count_values(): Can only count STRING and INTEGER values! in /in/NrjC3 on line 5 Warning: array_count_values(): Can only count STRING and INTEGER values! in /in/NrjC3 on line 5 Notice: Array to string conversion in /in/NrjC3 on line 5 Array
Output for 4.3.2 - 5.3.29
Warning: array_count_values(): Can only count STRING and INTEGER values! in /in/NrjC3 on line 5 Warning: array_count_values(): Can only count STRING and INTEGER values! in /in/NrjC3 on line 5 Warning: array_count_values(): Can only count STRING and INTEGER values! in /in/NrjC3 on line 5 Array
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/NrjC3 on line 5 Warning: array_count_values() [http://www.php.net/function.array-count-values]: Can only count STRING and INTEGER values! in /in/NrjC3 on line 5 Warning: array_count_values() [http://www.php.net/function.array-count-values]: Can only count STRING and INTEGER values! in /in/NrjC3 on line 5 Array