3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface ArrayInterface { public function test(array $data); } class Arrayer implements ArrayInterface { public function test($data) { } } $arrayer = new Arrayer();
based on IbidH
Output for 7.2.0
Output for 7.0.0 - 7.1.10
Fatal error: Declaration of Arrayer::test($data) must be compatible with ArrayInterface::test(array $data) in /in/JKMhd on line 8
Process exited with code 255.
Output for 5.4.9 - 5.6.28
Fatal error: Declaration of Arrayer::test() must be compatible with ArrayInterface::test(array $data) in /in/JKMhd on line 9
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Fatal error: Declaration of Arrayer::test() must be compatible with that of ArrayInterface::test() in /in/JKMhd on line 9
Process exited with code 255.