3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stack = array("orange", "banana", "apple", "raspberry"); $fruit = array_shift($stack); print_r($stack); echo "fruit is".$fruit; ?>

preferences:
43.1 ms | 402 KiB | 5 Q