3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = [ 1 => 'A', 1 => 'B', 1 => 'C' ]; var_dump($items[1]);

preferences:
23.27 ms | 404 KiB | 5 Q