3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fruits = "Apple\nOrange\nBanana"; if (preg_match_all('/^(.*)$/', $fruits, $matches)) { echo $matches[1][1]; } else { echo "Hungry"; } ?>
Output for 4.3.0 - 7.1.0
Hungry