3v4l.org

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