3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myarr = [1,2,3,4,5,6,7]; $test = array_shift($myarr); echo test;

preferences:
57.96 ms | 402 KiB | 5 Q