3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php interface A { public static function export(); } class B { public static function export($a, $b, $c = false) {} } B::export();
Output for 7.1.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function B::export(), 0 passed in /in/lb7vs on line 14 and at least 2 expected in /in/lb7vs:10 Stack trace: #0 /in/lb7vs(14): B::export() #1 {main} thrown in /in/lb7vs on line 10
Process exited with code 255.
Output for 5.1.0 - 5.6.28, 7.0.0 - 7.0.14
Warning: Missing argument 1 for B::export(), called in /in/lb7vs on line 14 and defined in /in/lb7vs on line 10 Warning: Missing argument 2 for B::export(), called in /in/lb7vs on line 14 and defined in /in/lb7vs on line 10
Output for hhvm-3.10.0 - 3.12.0
Warning: export() expects at least 2 parameters, 0 given in /in/lb7vs on line 10
Output for 5.0.0 - 5.0.5
Warning: Missing argument 1 for B::export() in /in/lb7vs on line 10 Warning: Missing argument 2 for B::export() in /in/lb7vs on line 10
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING in /in/lb7vs 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 in /in/lb7vs on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/lb7vs on line 4
Process exited with code 255.