3v4l.org

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

preferences:
35.45 ms | 402 KiB | 5 Q