3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public function doFoo($file, $args) { extract($args); return $file; } } $f = new Foo; var_dump($f->doFoo('test', array('file' => $f)));
based on Ni8EE
Output for 5.3.19 - 7.2.6
object(Foo)#1 (0) { }