3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new SplFixedArray(1); $a[0] = 1; $a[0]++; var_dump($a);

preferences:
25.91 ms | 404 KiB | 5 Q