3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(1,2,3,4,5); array_unshift($arr, array_pop($arr)); var_dump($arr);

preferences:
66.18 ms | 406 KiB | 5 Q