3v4l.org

run code in 300+ PHP versions simultaneously
<?php $error[1000] = "You must provide a first_name"; $error[] = "You must provide a last_name"; $error[0] = "This will push the other two errors down one index"; var_dump($error);

preferences:
48.71 ms | 402 KiB | 5 Q