3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array('potato', 'salad', 'salad_rel'); foreach ($test as $string){ echo substr($string, -4) . PHP_EOL; }

preferences:
38.9 ms | 402 KiB | 5 Q