<?php /* class myClass{ public function __construct($i){ echo $i; } } $inst = new myClass('testing'); */ var_dump( new class('testing'){ public function __construct($i){ echo $i; } } );
You have javascript disabled. You will not be able to edit any code.