3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface i1 { } class a { function find() { return null; } function _do(i1 $x) { var_dump("do".$x); } function main() { if ($this->n = $a->find() && _do($this->n)) { echo "yes"; } } } $a = new a(); $a->main();

preferences:
58.41 ms | 402 KiB | 5 Q