3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public function test() { var_dump(isset($argc), isset($argv)); } public function test2() { global $argc, $argv; var_dump(isset($argc), isset($argv)); } } function test() { var_dump(isset($argc), isset($argv)); } var_dump(isset($argc), isset($argv)); test(); $f = new Foo; $f->test(); $f->test2();
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
bool(true) bool(true) bool(false) bool(false) bool(false) bool(false) bool(true) bool(true)