3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $cmds = ["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", ".", "!!", "###"]; echo shell_exec("cat");

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.1.70.0050.00317.17
7.1.60.0070.01819.08
7.1.50.0000.01217.11
7.1.00.0070.05022.34
7.0.200.0030.00616.60
7.0.140.0000.07722.18
7.0.70.0030.08721.68
7.0.60.0170.06321.81
7.0.50.0070.07022.06
7.0.40.0000.08320.12
7.0.30.0130.06020.00
7.0.20.0000.07320.10
7.0.10.0070.07320.14
7.0.00.0070.07720.14
5.6.280.0000.07721.15
5.6.220.0030.05720.67
5.6.210.0070.07720.57
5.6.200.0100.07321.05
5.6.190.0000.06021.05
5.6.180.0130.08721.05
5.6.170.0030.05321.13
5.6.160.0030.06721.12
5.6.150.0030.08321.00
5.6.140.0070.07721.08
5.6.130.0030.07321.23
5.6.120.0130.08321.07
5.6.110.0100.08321.09
5.6.100.0070.07721.09
5.6.90.0070.08021.19
5.6.80.0070.07320.45
5.6.70.0100.07020.50
5.6.60.0100.07320.50
5.6.50.0100.07320.43
5.6.40.0000.08020.51
5.6.30.0070.07320.46
5.6.20.0000.07020.41
5.6.10.0030.07020.43
5.6.00.0100.06020.32
5.5.360.0100.06020.35
5.5.350.0070.08020.36
5.5.340.0070.07720.93
5.5.330.0000.04720.87
5.5.320.0070.05020.85
5.5.310.0070.05720.79
5.5.300.0100.08020.69
5.5.290.0030.07720.91
5.5.280.0000.09020.91
5.5.270.0000.07720.94
5.5.260.0070.08720.93
5.5.250.0100.07320.66
5.5.240.0000.09020.23
5.5.230.0100.08020.26
5.5.220.0030.06720.22
5.5.210.0030.07720.30
5.5.200.0070.06720.27
5.5.190.0000.08020.30
5.5.180.0100.07320.32
5.5.160.0070.06720.26
5.5.150.0000.07320.23
5.5.140.0030.08020.32
5.5.130.0070.07320.17
5.5.120.0070.07720.22
5.5.110.0030.08020.22
5.5.100.0030.07020.21
5.5.90.0030.07320.02
5.5.80.0100.06720.21
5.5.70.0100.07020.16
5.5.60.0030.07720.20
5.5.50.0030.07320.11
5.5.40.0070.08020.10
5.5.30.0000.08020.10
5.5.20.0100.06320.09
5.5.10.0070.08020.08
5.5.00.0100.05020.14
5.4.450.0030.07719.42
5.4.440.0070.07319.40
5.4.430.0100.07719.51
5.4.420.0100.07719.41
5.4.410.0070.07319.14
5.4.400.0000.05319.16
5.4.390.0030.07319.09
5.4.380.0070.07318.83
5.4.370.0070.05019.12
5.4.360.0170.06719.06
5.4.350.0030.06318.95
5.4.340.0030.06319.20
5.4.320.0100.04018.82
5.4.310.0130.06319.09
5.4.300.0070.04019.24
5.4.290.0070.06319.07
5.4.280.0070.03719.09
5.4.270.0000.07719.00
5.4.260.0030.08019.12
5.4.250.0130.05019.22
5.4.240.0100.06018.86
5.4.230.0100.06018.85
5.4.220.0130.07019.00
5.4.210.0100.06719.19
5.4.200.0070.05718.96
5.4.190.0170.06319.11
5.4.180.0030.06718.98
5.4.170.0030.06719.06
5.4.160.0100.06718.99
5.4.150.0000.04719.05
5.4.140.0030.04016.11
5.4.130.0000.06716.32
5.4.120.0030.07016.39
5.4.110.0000.05016.48
5.4.100.0070.05316.43
5.4.90.0000.04316.39
5.4.80.0100.03016.39
5.4.70.0030.06016.42
5.4.60.0000.06316.48
5.4.50.0100.07016.29
5.4.40.0000.05316.48
5.4.30.0070.07316.40
5.4.20.0170.06016.37
5.4.10.0030.06716.25
5.4.00.0030.05715.85
5.3.290.0030.07714.66
5.3.280.0000.08014.59
5.3.270.0100.06314.60
5.3.260.0030.07714.59
5.3.250.0030.06014.61
5.3.240.0000.06714.58
5.3.230.0100.05714.57
5.3.220.0030.06314.56
5.3.210.0030.07014.56
5.3.200.0030.04014.48
5.3.190.0000.03714.55
5.3.180.0030.05314.56
5.3.170.0030.05314.54
5.3.160.0170.06314.43
5.3.150.0000.07714.38
5.3.140.0030.07014.39
5.3.130.0030.05014.54
5.3.120.0070.06014.38
5.3.110.0070.06314.54
5.3.100.0030.05014.04
5.3.90.0070.06713.89
5.3.80.0070.05313.93
5.3.70.0030.05714.01
5.3.60.0000.06713.99
5.3.50.0070.06713.80
5.3.40.0100.06013.89
5.3.30.0130.06313.87
5.3.20.0030.07713.57
5.3.10.0030.06713.43
5.3.00.0030.06713.63
5.2.170.0030.06311.14
5.2.160.0000.06311.18
5.2.150.0030.05311.13
5.2.140.0070.05711.00
5.2.130.0000.05011.10
5.2.120.0030.06011.09
5.2.110.0000.06311.02
5.2.100.0030.06710.85
5.2.90.0030.06011.17
5.2.80.0030.06011.10
5.2.70.0000.05711.11
5.2.60.0030.06010.84
5.2.50.0030.06011.02
5.2.40.0030.05710.83
5.2.30.0070.06310.92
5.2.20.0030.06310.84
5.2.10.0070.05710.91
5.2.00.0030.06310.78
5.1.60.0030.04310.04
5.1.50.0100.04710.03
5.1.40.0030.0539.98
5.1.30.0000.06010.40
5.1.20.0000.05710.28
5.1.10.0070.05310.17
5.1.00.0030.05710.05
5.0.50.0030.0378.97
5.0.40.0030.0408.97
5.0.30.0130.0538.97
5.0.20.0000.0438.97
5.0.10.0100.0378.97
5.0.00.0000.0608.97
4.4.90.0000.0338.97
4.4.80.0070.0308.97
4.4.70.0030.0308.97
4.4.60.0030.0338.97
4.4.50.0030.0378.97
4.4.40.0000.0408.97
4.4.30.0000.0378.97
4.4.20.0000.0338.97
4.4.10.0000.0308.97
4.4.00.0070.0378.97
4.3.110.0000.0308.97
4.3.100.0030.0308.97
4.3.90.0000.0308.97
4.3.80.0030.0478.97
4.3.70.0030.0338.97
4.3.60.0030.0338.97
4.3.50.0000.0378.97
4.3.40.0030.0508.97
4.3.30.0000.0208.97
4.3.20.0030.0378.97
4.3.10.0070.0308.97
4.3.00.0000.0338.97