3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if(in_array(0, array('Y', 'N', ''), true)) echo '0 in strict array'; if(in_array(0, array('Y', 'N', ''))) echo '0 in array'; if(in_array('', array('Y', 'N', ''), true)) echo 'empty in strict array'; if(in_array('', array('Y', 'N', ''))) echo 'empty in array';
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
0 in arrayempty in strict arrayempty in array