3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = []; for($i=4;$i>=0;$i--){ $x = [$i => $x]; } print_r($x);

preferences:
26.36 ms | 404 KiB | 5 Q