<?php
interface inter {
public function test($element = null, $params = []);
}
class cla implements inter {
public function test($element = null)
{
}
}
Fatal error: Declaration of cla::test($element = null) must be compatible with inter::test($element = null, $params = []) in /in/g4ZGr on line 13
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Fatal error: Declaration of cla::test($element = NULL) must be compatible with inter::test($element = NULL, $params = Array) in /in/g4ZGr on line 13
Process exited with code 255.
Fatal error: Declaration of cla::test($element = NULL) must be compatible with inter::test($element = NULL, $params = Array) in /in/g4ZGr on line 11
Process exited with code 255.
Fatal error: Declaration of cla::test() must be compatible with inter::test($element = NULL, $params = Array) in /in/g4ZGr on line 11
Process exited with code 255.
Output for 5.2.3 - 5.2.17, 5.3.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/g4ZGr on line 7
Process exited with code 255.
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.2
<br />
<b>Parse error</b>: syntax error, unexpected '[' in <b>/in/g4ZGr</b> on line <b>7</b><br />
Process exited with code 255.
Output for 5.0.0 - 5.0.5
<br />
<b>Parse error</b>: parse error, unexpected '[' in <b>/in/g4ZGr</b> on line <b>7</b><br />
Process exited with code 255.
Output for 4.4.2 - 4.4.9
<br />
<b>Parse error</b>: syntax error, unexpected T_STRING in <b>/in/g4ZGr</b> on line <b>5</b><br />
Process exited with code 255.