3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $cmds = array("alias", "apt-get", "aptitude", "aspell", "awk", "basename", "bc", "bg", "break", "builtin", "bzip2", "cal", "case", "cat", "cd", "cfdisk", "chgrp", "chmod", "chown", "chroot", "chkconfig", "cksum", "cmp", "comm", "command", "continue", "cp", "cron", "crontab", "csplit", "cut", "date", "dc", "dd", "ddrescue", "declare", "df", "diff", "diff3", "dig", "dir", "dircolors", "dirname", "dirs", "dmesg", "du", "echo", "egrep", "eject", "enable", "env", "eval", "exec", "exit", "expect", "expand", "export", "expr", "false", "fdformat", "fdisk", "fg", "fgrep", "find", "fmt", "fold", "for", "fsck", "function", "fuser", "gawk", "getopts", "grep", "groupadd", "groupdel", "groupmod", "groups", "gzip", "hash", "head", "history", "hostname", "iconv", "id", "if", "ifconfig", "ifdown", "ifup", "import", "install", "jobs", "join", "kill", "killall", "less", "let", "ln", "local", "locate", "logname", "logout", "look", "lpc", "lpr", "lprm", "ls", "lsof", "man", "mkdir", "mkfifo", "mknod", "more", "mount", "mtools", "mtr", "mv", "mmv", "nice", "nl", "nohup", "notify-send", "nslookup", "open", "op", "passwd", "paste", "ping", "pkill", "popd", "pr", "printf", "ps", "pushd", "pwd", "quota", "quotacheck", "quotactl", "ram", "rcp", "read", "readonly", "rename", "return", "rev", "rm", "rmdir", "rsync", "screen", "scp", "sdiff", "sed", "select", "seq", "set", "shift", "shopt", "shutdown", "sleep", "slocate", "sort", "source", "split", "ssh", "su", "sudo", "sum", "suspend", "symlink", "sync", "tail", "tar", "tee", "test", "time", "times", "touch", "top", "traceroute", "tr", "true", "tsort", "tty", "type", "ulimit", "umask", "unalias", "uname", "unexpand", "uniq", "units", "unset", "unshar", "until", "useradd", "userdel", "usermod", "users", "uuencode", "uudecode", "vi", "vmstat", "wait", "watch", "wc", "whereis", "which", "while", "who", "whoami", "write", "xargs", "xdg-open", "yes", ".", "!!", "###"); foreach($cmds as $cmd) { echo $cmd." => ".shell_exec($cmd); }
Output for 5.3.0 - 5.6.30, 7.0.0 - 7.2.0
alias => apt-get => aptitude => aspell => awk => basename => bc => bg => break => builtin => bzip2 => cal => case => cat => cd => cfdisk => chgrp => chmod => chown => chroot => chkconfig => cksum => cmp => comm => command => continue => cp => cron => crontab => csplit => cut => date => dc => dd => ddrescue => declare => df => diff => diff3 => dig => dir => dircolors => dirname => dirs => dmesg => du => echo => egrep => eject => enable => env => eval => exec => exit => expect => expand => export => expr => false => fdformat => fdisk => fg => fgrep => find => fmt => fold => for => fsck => function => fuser => gawk => getopts => grep => groupadd => groupdel => groupmod => groups => gzip => hash => head => history => hostname => iconv => id => if => ifconfig => ifdown => ifup => import => install => jobs => join => kill => killall => less => let => ln => local => locate => logname => logout => look => lpc => lpr => lprm => ls => lsof => man => mkdir => mkfifo => mknod => more => mount => mtools => mtr => mv => mmv => nice => nl => nohup => notify-send => nslookup => open => op => passwd => paste => ping => pkill => popd => pr => printf => ps => pushd => pwd => quota => quotacheck => quotactl => ram => rcp => read => readonly => rename => return => rev => rm => rmdir => rsync => screen => scp => sdiff => sed => select => seq => set => shift => shopt => shutdown => sleep => slocate => sort => source => split => ssh => su => sudo => sum => suspend => symlink => sync => tail => tar => tee => test => time => times => touch => top => traceroute => tr => true => tsort => tty => type => ulimit => umask => unalias => uname => unexpand => uniq => units => unset => unshar => until => useradd => userdel => usermod => users => uuencode => uudecode => vi => vmstat => wait => watch => wc => whereis => which => while => who => whoami => write => xargs => xdg-open => yes => . => !! => ### =>
Output for hhvm-3.10.1 - 3.17.3
alias => Failed to exec: `alias' apt-get => Failed to exec: `apt-get' aptitude => Failed to exec: `aptitude' aspell => Failed to exec: `aspell' awk => Failed to exec: `awk' basename => Failed to exec: `basename' bc => Failed to exec: `bc' bg => Failed to exec: `bg' break => Failed to exec: `break' builtin => Failed to exec: `builtin' bzip2 => Failed to exec: `bzip2' cal => Failed to exec: `cal' case => Failed to exec: `case' cat => Failed to exec: `cat' cd => Failed to exec: `cd' cfdisk => Failed to exec: `cfdisk' chgrp => Failed to exec: `chgrp' chmod => Failed to exec: `chmod' chown => Failed to exec: `chown' chroot => Failed to exec: `chroot' chkconfig => Failed to exec: `chkconfig' cksum => Failed to exec: `cksum' cmp => Failed to exec: `cmp' comm => Failed to exec: `comm' command => Failed to exec: `command' continue => Failed to exec: `continue' cp => Failed to exec: `cp' cron => Failed to exec: `cron' crontab => Failed to exec: `crontab' csplit => Failed to exec: `csplit' cut => Failed to exec: `cut' date => Failed to exec: `date' dc => Failed to exec: `dc' dd => Failed to exec: `dd' ddrescue => Failed to exec: `ddrescue' declare => Failed to exec: `declare' df => Failed to exec: `df' diff => Failed to exec: `diff' diff3 => Failed to exec: `diff3' dig => Failed to exec: `dig' dir => Failed to exec: `dir' dircolors => Failed to exec: `dircolors' dirname => Failed to exec: `dirname' dirs => Failed to exec: `dirs' dmesg => Failed to exec: `dmesg' du => Failed to exec: `du' echo => Failed to exec: `echo' egrep => Failed to exec: `egrep' eject => Failed to exec: `eject' enable => Failed to exec: `enable' env => Failed to exec: `env' eval => Failed to exec: `eval' exec => Failed to exec: `exec' exit => Failed to exec: `exit' expect => Failed to exec: `expect' expand => Failed to exec: `expand' export => Failed to exec: `export' expr => Failed to exec: `expr' false => Failed to exec: `false' fdformat => Failed to exec: `fdformat' fdisk => Failed to exec: `fdisk' fg => Failed to exec: `fg' fgrep => Failed to exec: `fgrep' find => Failed to exec: `find' fmt => Failed to exec: `fmt' fold => Failed to exec: `fold' for => Failed to exec: `for' fsck => Failed to exec: `fsck' function => Failed to exec: `function' fuser => Failed to exec: `fuser' gawk => Failed to exec: `gawk' getopts => Failed to exec: `getopts' grep => Failed to exec: `grep' groupadd => Failed to exec: `groupadd' groupdel => Failed to exec: `groupdel' groupmod => Failed to exec: `groupmod' groups => Failed to exec: `groups' gzip => Failed to exec: `gzip' hash => Failed to exec: `hash' head => Failed to exec: `head' history => Failed to exec: `history' hostname => Failed to exec: `hostname' iconv => Failed to exec: `iconv' id => Failed to exec: `id' if => Failed to exec: `if' ifconfig => Failed to exec: `ifconfig' ifdown => Failed to exec: `ifdown' ifup => Failed to exec: `ifup' import => Failed to exec: `import' install => Failed to exec: `install' jobs => Failed to exec: `jobs' join => Failed to exec: `join' kill => Failed to exec: `kill' killall => Failed to exec: `killall' less => Failed to exec: `less' let => Failed to exec: `let' ln => Failed to exec: `ln' local => Failed to exec: `local' locate => Failed to exec: `locate' logname => Failed to exec: `logname' logout => Failed to exec: `logout' look => Failed to exec: `look' lpc => Failed to exec: `lpc' lpr => Failed to exec: `lpr' lprm => Failed to exec: `lprm' ls => Failed to exec: `ls' lsof => Failed to exec: `lsof' man => Failed to exec: `man' mkdir => Failed to exec: `mkdir' mkfifo => Failed to exec: `mkfifo' mknod => Failed to exec: `mknod' more => Failed to exec: `more' mount => Failed to exec: `mount' mtools => Failed to exec: `mtools' mtr => Failed to exec: `mtr' mv => Failed to exec: `mv' mmv => Failed to exec: `mmv' nice => Failed to exec: `nice' nl => Failed to exec: `nl' nohup => Failed to exec: `nohup' notify-send => Failed to exec: `notify-send' nslookup => Failed to exec: `nslookup' open => Failed to exec: `open' op => Failed to exec: `op' passwd => Failed to exec: `passwd' paste => Failed to exec: `paste' ping => Failed to exec: `ping' pkill => Failed to exec: `pkill' popd => Failed to exec: `popd' pr => Failed to exec: `pr' printf => Failed to exec: `printf' ps => Failed to exec: `ps' pushd => Failed to exec: `pushd' pwd => Failed to exec: `pwd' quota => Failed to exec: `quota' quotacheck => Failed to exec: `quotacheck' quotactl => Failed to exec: `quotactl' ram => Failed to exec: `ram' rcp => Failed to exec: `rcp' read => Failed to exec: `read' readonly => Failed to exec: `readonly' rename => Failed to exec: `rename' return => Failed to exec: `return' rev => Failed to exec: `rev' rm => Failed to exec: `rm' rmdir => Failed to exec: `rmdir' rsync => Failed to exec: `rsync' screen => Failed to exec: `screen' scp => Failed to exec: `scp' sdiff => Failed to exec: `sdiff' sed => Failed to exec: `sed' select => Failed to exec: `select' seq => Failed to exec: `seq' set => Failed to exec: `set' shift => Failed to exec: `shift' shopt => Failed to exec: `shopt' shutdown => Failed to exec: `shutdown' sleep => Failed to exec: `sleep' slocate => Failed to exec: `slocate' sort => Failed to exec: `sort' source => Failed to exec: `source' split => Failed to exec: `split' ssh => Failed to exec: `ssh' su => Failed to exec: `su' sudo => Failed to exec: `sudo' sum => Failed to exec: `sum' suspend => Failed to exec: `suspend' symlink => Failed to exec: `symlink' sync => Failed to exec: `sync' tail => Failed to exec: `tail' tar => Failed to exec: `tar' tee => Failed to exec: `tee' test => Failed to exec: `test' time => Failed to exec: `time' times => Failed to exec: `times' touch => Failed to exec: `touch' top => Failed to exec: `top' traceroute => Failed to exec: `traceroute' tr => Failed to exec: `tr' true => Failed to exec: `true' tsort => Failed to exec: `tsort' tty => Failed to exec: `tty' type => Failed to exec: `type' ulimit => Failed to exec: `ulimit' umask => Failed to exec: `umask' unalias => Failed to exec: `unalias' uname => Failed to exec: `uname' unexpand => Failed to exec: `unexpand' uniq => Failed to exec: `uniq' units => Failed to exec: `units' unset => Failed to exec: `unset' unshar => Failed to exec: `unshar' until => Failed to exec: `until' useradd => Failed to exec: `useradd' userdel => Failed to exec: `userdel' usermod => Failed to exec: `usermod' users => Failed to exec: `users' uuencode => Failed to exec: `uuencode' uudecode => Failed to exec: `uudecode' vi => Failed to exec: `vi' vmstat => Failed to exec: `vmstat' wait => Failed to exec: `wait' watch => Failed to exec: `watch' wc => Failed to exec: `wc' whereis => Failed to exec: `whereis' which => Failed to exec: `which' while => Failed to exec: `while' who => Failed to exec: `who' whoami => Failed to exec: `whoami' write => Failed to exec: `write' xargs => Failed to exec: `xargs' xdg-open => Failed to exec: `xdg-open' yes => Failed to exec: `yes' . => Failed to exec: `.' !! => Failed to exec: `!!' ### => Failed to exec: `###'