- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.21
- Parse error: syntax error, unexpected '(', expecting '{' in /in/gnHCp on line 2
Process exited with code 255.
<?php
class ClassParent() {
public function __construct() {
echo 'Im parent';
}
}
class ClassChild() {
protected $parent = null;
public function __construct() {
echo 'Im child';
$this->parent = new parent();
}
}