- Output for 5.4.1 - 5.4.45, 5.5.24 - 5.5.30, 5.6.8 - 5.6.14
- Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/Om0Hr on line 16
Process exited with code 255.
<?php
/*
class myName{
public function __construct($prop){
echo $prop;
}
}
$obj = new myName('testing');
*/
$obj = new class('testing'){
public function __construct($prop){
echo $prop;
}
}