PHP - Klasseninstanz ohne Datentyp

<syntaxhighlight lang="php">

class Test {

 public function __construct(){
   echo 'ok';
 }

}

new Test();

<syntaxhighlight>