3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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.4.10 - 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.
Output for 5.3.20 - 5.3.29
Fatal error: Declaration of a::offsetGet() must be compatible with that of ArrayAccess::offsetGet() in /in/OLN3c on line 5
Process exited with code 255.