3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $valid_options = array(0, 1, 2, 3, 4, 5, 6); $option = 'arooo'; if (in_array($option, $valid_options)) { print "go home php, you're drunk"; }
Output for 4.3.0 - 7.1.0
go home php, you're drunk