3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.0
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 hhvm-3.12.0
Warning: Can only count STRING and INTEGER values! in /in/NrjC3 on line 5 Warning: Can only count STRING and INTEGER values! in /in/NrjC3 on line 5 Warning: 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 hhvm-3.10.0
Warning: Can only count STRING and INTEGER values! in /in/NrjC3 on line 6 Warning: Can only count STRING and INTEGER values! in /in/NrjC3 on line 6 Warning: Can only count STRING and INTEGER values! in /in/NrjC3 on line 6 Notice: Array to string conversion in /in/NrjC3 on line 9 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