3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php abstract class Abstract1 { public function test1 (array $arr1 = [], array &$arr2 = []); } abstract class Abstract2 extends Abstract1 { public function test1 (array $arr1 = []); }
based on juZTe
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.7
Fatal error: Non-abstract method Abstract1::test1() must contain body in /in/0WHpl on line 4
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Non-abstract method Abstract1::test1() must contain body in /in/0WHpl:4 Stack trace: #0 {main}
Process exited with code 255.