3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits = "Apple\nOrange\nBanana"; if (preg_match_all('/^(.*)$/', $fruits, $matches)) { echo $matches[1][1]; } else { echo "Hungry"; } ?>

preferences:
41.13 ms | 402 KiB | 5 Q