3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $argv[1] = array($argv[0], 'arg1', 'arg2', 'arg3'); var_dump(getopt(''));
Output for 4.3.2 - 5.6.28, 7.0.0 - 7.1.0
array(0) { }
Output for hhvm-3.10.0 - 3.12.0
Notice: Array to string conversion in /in/JEkV6 on line 5 array(0) { }
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: argv in /in/JEkV6 on line 3 array(0) { }