3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array('vk_group' => NULL,'vk_group1' => NULL,'vk_group2' => NULL); if(array_count_values($array)){ echo 1 ; }
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/7c37a on line 4 Warning: array_count_values(): Can only count STRING and INTEGER values! in /in/7c37a on line 4 Warning: array_count_values(): Can only count STRING and INTEGER values! in /in/7c37a on line 4
Output for hhvm-3.10.0 - 3.12.0
Warning: Can only count STRING and INTEGER values! in /in/7c37a on line 4 Warning: Can only count STRING and INTEGER values! in /in/7c37a on line 4 Warning: Can only count STRING and INTEGER values! in /in/7c37a on line 4
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/7c37a on line 4 Warning: array_count_values() [http://www.php.net/function.array-count-values]: Can only count STRING and INTEGER values! in /in/7c37a on line 4 Warning: array_count_values() [http://www.php.net/function.array-count-values]: Can only count STRING and INTEGER values! in /in/7c37a on line 4