3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { [1000]=> string(29) "You must provide a first_name" [1001]=> string(28) "You must provide a last_name" [0]=> string(50) "This will push the other two errors down one index" }