3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace HHVM\UserDocumentation\Inconsistencies\Intro\Examples\LVP; class Foo { function bar($baz) { $baz = 'herpderp'; // Always outputs array('herpderp') var_dump(func_get_args()); } } $f = new Foo(); $f->bar('blah');
based on PWAUp
Output for 7.0.0 - 7.2.0
array(1) { [0]=> string(8) "herpderp" }
Output for 5.3.19 - 5.6.28
array(1) { [0]=> string(4) "blah" }