3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new SplFixedArray(5000); for($i = 0; $i < 5000; $i++) { $a[] = $i; }
based on 8QZcN
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught RuntimeException: Index invalid or out of range in /in/KNIf8:4 Stack trace: #0 {main} thrown in /in/KNIf8 on line 4
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Fatal error: Uncaught exception 'RuntimeException' with message 'Index invalid or out of range' in /in/KNIf8:4 Stack trace: #0 /in/KNIf8(4): unknown() #1 {main} thrown in /in/KNIf8 on line 4
Process exited with code 255.