3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class MyFixedArray extends SplFixedArray { public function offsetGet($offset) {} } $array = new MyFixedArray(10); $array[][1] = 10;
based on qJaaK
Output for 5.3.22 - 5.3.29, 5.4.13 - 7.1.0
Notice: Indirect modification of overloaded element of MyFixedArray has no effect in /in/rFQ6d on line 8
Output for 5.3.0 - 5.3.21, 5.4.0 - 5.4.12

Process exited with code 139.
Output for 5.0.0 - 5.2.17
Fatal error: Class 'SplFixedArray' not found in /in/rFQ6d on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/rFQ6d on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/rFQ6d on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/rFQ6d on line 4
Process exited with code 255.