3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /** * this is the CHILD class */ class CustomCourse extends BaseContact/*BaseCourse*/ { public function toArray() { $values = parent::toArray(); // do some more with $values here return $values; } } /** * this is the PARENT class */ class BaseContact /*extends Course*/ { public function toArray($platform = GOLF_PLATFORM) { $values = array(); $values['user_id'] = $this->getUserId(); // do some more in here return $values; } }
Output for 7.0.0 - 7.1.0
Warning: Declaration of CustomCourse::toArray() should be compatible with BaseContact::toArray($platform = GOLF_PLATFORM) in /in/8kLLM on line 6
Output for hhvm-3.10.0 - 3.12.0
Output for 5.4.31 - 5.4.45, 5.5.15 - 5.6.28
Strict Standards: Declaration of CustomCourse::toArray() should be compatible with BaseContact::toArray($platform = GOLF_PLATFORM) in /in/8kLLM on line 6
Output for 5.4.0 - 5.4.30, 5.5.0 - 5.5.14
Notice: Use of undefined constant GOLF_PLATFORM - assumed 'GOLF_PLATFORM' in /in/8kLLM on line 6 Strict Standards: Declaration of CustomCourse::toArray() should be compatible with BaseContact::toArray($platform = 'GOLF_PLATF...') in /in/8kLLM on line 6
Output for 5.0.0 - 5.3.29
Strict Standards: Declaration of CustomCourse::toArray() should be compatible with that of BaseContact::toArray() in /in/8kLLM on line 6
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/8kLLM on line 8
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 T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/8kLLM on line 8
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/8kLLM on line 8
Process exited with code 255.