3v4l.org

run code in 200+ 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 5.4.0 - 5.4.24
Parse error: syntax error, unexpected 'Y' (T_STRING) in /in/BBfbS on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/BBfbS on line 5
Process exited with code 255.