3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test($args = array()) { $foo = null; $bar = 'default'; $baz = null; extract($args); var_dump($foo); var_dump($bar); var_dump($baz); } test(array('foo' => 'foo', 'baz' => 'baz'));
Output for 4.3.0 - 7.2.0
string(3) "foo" string(7) "default" string(3) "baz"