3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a[0] = '1'; $a[1] = '2'; $a[2] = '2'; if(in_array('2', $a) && count(in_array('2', $a)) > 1){ echo 'yes'; }
Output for 7.2.0
Warning: count(): Parameter must be an array or an object that implements Countable in /in/q4PAK on line 4
Output for 5.3.22 - 7.1.10