3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function doFoo($file, $args) { extract($args); return $file; } } $f = new Foo; var_dump($f->doFoo('test', array('file' => $f)));

preferences:
61.26 ms | 402 KiB | 5 Q