<?php class derp { function __construct($derp) { return $this; } } class test { function get() { return true; } } $ob = new derp((new test)->get()); print_r($ob);
You have javascript disabled. You will not be able to edit any code.