3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL | E_STRICT); class Foo{ function construct(StdClass $boo) {}} class Bar extends Foo {function construct(StdClass $boo, array $a){}} (new Bar)->construct(new StdClass, []);
Output for 7.0.0 - 7.1.0
Warning: Declaration of Bar::construct(StdClass $boo, array $a) should be compatible with Foo::construct(StdClass $boo) in /in/ID3VG on line 5
Output for hhvm-3.10.0 - 3.13.2
Output for 5.4.0 - 5.6.28
Strict Standards: Declaration of Bar::construct() should be compatible with Foo::construct(StdClass $boo) in /in/ID3VG on line 5
Output for 5.1.0 - 5.3.29
Strict Standards: Declaration of Bar::construct() should be compatible with that of Foo::construct() in /in/ID3VG on line 5 Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/ID3VG on line 7
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_ARRAY, expecting '&' or T_VARIABLE in /in/ID3VG on line 5
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting ')' in /in/ID3VG 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 ')' in /in/ID3VG on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/ID3VG on line 4
Process exited with code 255.