3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $argv[1] = array($argv[0], '-xfoo', '-y', 'foo', 'arg1', 'arg2', 'arg3'); var_dump(getopt('*'));
Output for 4.3.2 - 7.1.0
array(0) { }
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: argv in /in/Cs924 on line 3 array(0) { }