3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a extends arrayobject{ public function offsetGet( string $offset ) {} }
Output for 7.0.0
Fatal error: Declaration of a::offsetGet(string $offset) must be compatible with ArrayAccess::offsetGet($offset) in /in/OLN3c on line 5
Process exited with code 255.
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
Fatal error: Declaration of a::offsetGet() must be compatible with ArrayAccess::offsetGet($offset) in /in/OLN3c on line 5
Process exited with code 255.

preferences:
171.06 ms | 1387 KiB | 24 Q