3v4l.org

run code in 300+ PHP versions simultaneously
<?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", ".", "!!", "###"); echo $cmd." => ".shell_exec("php");

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0040.01216.75
8.3.50.0060.01122.12
8.3.40.0090.00619.02
8.3.30.0150.00019.05
8.3.20.0100.00420.25
8.3.10.0070.00023.73
8.3.00.0030.00619.38
8.2.180.0120.00318.18
8.2.170.0070.00722.96
8.2.160.0030.01120.53
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0120.00626.16
8.2.120.0040.00422.21
8.2.110.0000.00920.57
8.2.100.0040.00819.45
8.2.90.0040.00419.17
8.2.80.0050.00617.97
8.2.70.0060.00717.38
8.2.60.0030.00617.91
8.2.50.0050.00318.07
8.2.40.0050.00318.34
8.2.30.0040.00418.11
8.2.20.0040.00417.89
8.2.10.0070.00018.21
8.2.00.0040.00417.73
8.1.280.0100.00725.92
8.1.270.0080.00023.97
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00724.05
8.1.230.0000.01117.50
8.1.220.0030.00717.74
8.1.210.0050.00318.77
8.1.200.0050.00517.35
8.1.190.0040.00417.53
8.1.180.0000.00818.10
8.1.170.0040.00418.66
8.1.160.0000.00822.04
8.1.150.0000.00718.72
8.1.140.0030.00517.49
8.1.130.0040.00417.99
8.1.120.0070.00017.56
8.1.110.0000.00717.42
8.1.100.0040.00417.52
8.1.90.0020.00517.37
8.1.80.0030.00317.45
8.1.70.0030.00417.31
8.1.60.0040.00417.56
8.1.50.0000.00817.45
8.1.40.0000.00817.54
8.1.30.0080.00017.66
8.1.20.0040.00417.54
8.1.10.0040.00417.48
8.1.00.0050.00317.55
8.0.300.0000.00818.77
8.0.290.0030.00616.88
8.0.280.0030.00318.43
8.0.270.0040.00417.31
8.0.260.0080.00016.95
8.0.250.0070.00016.93
8.0.240.0050.00617.08
8.0.230.0000.00717.02
8.0.220.0030.00317.01
8.0.210.0030.00416.87
8.0.200.0040.00417.00
8.0.190.0050.00217.07
8.0.180.0050.00316.92
8.0.170.0060.00316.94
8.0.160.0040.00417.05
8.0.150.0000.00716.86
8.0.140.0000.00716.96
8.0.130.0080.00013.38
8.0.120.0030.00316.91
8.0.110.0080.00016.95
8.0.100.0000.00716.75
8.0.90.0070.00016.93
8.0.80.0140.00316.94
8.0.70.0040.00416.84
8.0.60.0000.00816.80
8.0.50.0050.00316.84
8.0.30.0120.00717.14
8.0.20.0090.01017.41
8.0.10.0040.00417.07
8.0.00.0120.00816.92
7.4.330.0030.00315.00
7.4.320.0030.00316.61
7.4.300.0030.00316.60
7.4.290.0000.00816.53
7.4.280.0000.00816.66
7.4.270.0000.00716.54
7.4.260.0000.00716.64
7.4.250.0000.00716.47
7.4.240.0030.00416.47
7.4.230.0030.00416.58
7.4.220.0110.01216.41
7.4.210.0100.00716.51
7.4.200.0030.00416.29
7.4.190.0000.00716.57
7.4.160.0080.01616.54
7.4.150.0100.01117.40
7.4.140.0120.00617.86
7.4.130.0100.00916.58
7.4.120.0100.00716.42
7.4.110.0080.01516.41
7.4.100.0070.01716.43
7.4.90.0140.00416.42
7.4.80.0130.00519.39
7.4.70.0100.00716.55
7.4.60.0130.00516.55
7.4.50.0030.00416.22
7.4.40.0060.00922.77
7.4.30.0130.00716.36
7.4.00.0050.01314.75
7.3.330.0030.00313.19
7.3.320.0000.00513.09
7.3.310.0080.00016.29
7.3.300.0070.00016.35
7.3.290.0000.01616.46
7.3.280.0120.00816.35
7.3.270.0060.01217.40
7.3.260.0090.01016.59
7.3.250.0110.00816.46
7.3.240.0070.01116.57
7.3.230.0070.01216.50
7.3.210.0070.01016.48
7.3.200.0030.02019.39
7.3.190.0100.00716.66
7.3.180.0050.01816.52
7.3.170.0080.00816.43
7.3.160.0060.01016.39
7.3.120.0050.01415.03
7.2.330.0190.00016.75
7.2.320.0170.00716.44
7.2.310.0140.01016.64
7.2.300.0110.00616.41
7.2.290.0060.01716.50
7.2.00.0000.01319.37
7.1.100.0090.00317.91
7.1.70.0120.00917.23
7.1.60.0110.01519.31
7.1.50.0070.00716.72
7.1.00.0030.07722.37
7.0.200.0050.00516.77
7.0.140.0030.06721.96
7.0.70.0000.04321.70
7.0.60.0030.04021.75
7.0.50.0030.05722.18
7.0.40.0070.03720.05
7.0.30.0030.04320.14
7.0.20.0100.03720.14
7.0.10.0100.03320.17
7.0.00.0030.04020.18
5.6.280.0070.07321.09
5.6.220.0070.03720.63
5.6.210.0030.03320.63
5.6.200.0000.04321.05
5.6.190.0000.04321.10
5.6.180.0030.06321.09
5.6.170.0030.04321.21
5.6.160.0030.04021.07
5.6.150.0000.03721.06
5.6.140.0030.03321.08
5.6.130.0000.04321.21
5.6.120.0000.03721.18
5.6.110.0000.04320.99
5.6.100.0070.03021.11
5.6.90.0030.04321.03
5.6.80.0000.04020.46
5.6.70.0100.03020.52
5.6.60.0070.03320.59
5.6.50.0130.05720.48
5.6.40.0100.07720.54
5.6.30.0000.08020.45
5.6.20.0100.06320.41
5.6.10.0100.07720.51
5.6.00.0100.07020.39
5.5.360.0030.06720.43
5.5.350.0070.03720.50
5.5.340.0030.04020.78
5.5.330.0070.03720.84
5.5.320.0030.06020.94
5.5.310.0070.04020.84
5.5.300.0030.03320.82
5.5.290.0000.04320.82
5.5.280.0100.07320.91
5.5.270.0030.05020.95
5.5.260.0000.04320.81
5.5.250.0030.04020.72
5.5.240.0030.03720.30
5.5.230.0000.04020.31
5.5.220.0070.06720.33
5.5.210.0030.07320.32
5.5.200.0100.06020.02
5.5.190.0070.08320.13
5.5.180.0070.08020.17
5.5.160.0000.06020.32
5.5.150.0070.07320.30
5.5.140.0100.07720.17
5.5.130.0130.05320.13
5.5.120.0000.04720.22
5.5.110.0100.05720.25
5.5.100.0100.08020.00
5.5.90.0070.07719.98
5.5.80.0030.07020.14
5.5.70.0030.08020.05
5.5.60.0130.07320.08
5.5.50.0030.04320.11
5.5.40.0030.07720.15
5.5.30.0030.06320.17
5.5.20.0000.08020.18
5.5.10.0070.08320.16
5.5.00.0070.07720.12
5.4.450.0070.05019.43
5.4.440.0070.03719.42
5.4.430.0030.03319.47
5.4.420.0070.06019.55
5.4.410.0030.03019.14
5.4.400.0000.03719.09
5.4.390.0000.04319.04
5.4.380.0000.03318.94
5.4.370.0030.08019.00
5.4.360.0070.07019.07
5.4.350.0070.05719.21
5.4.340.0000.07719.09
5.4.320.0030.08319.13
5.4.310.0030.07718.83
5.4.300.0070.08019.09
5.4.290.0130.07018.95
5.4.280.0100.05718.99
5.4.270.0000.08318.89
5.4.260.0100.06719.22
5.4.250.0030.06319.07
5.4.240.0030.08018.91
5.4.230.0000.08019.18
5.4.220.0000.08318.93
5.4.210.0030.07319.15
5.4.200.0100.07319.07
5.4.190.0100.07318.86
5.4.180.0070.08319.11
5.4.170.0000.08018.97
5.4.160.0030.08018.99
5.4.150.0030.06719.07
5.4.140.0030.07716.43
5.4.130.0100.07016.36
5.4.120.0030.07316.36
5.4.110.0100.05316.40
5.4.100.0070.04316.39
5.4.90.0030.07716.29
5.4.80.0030.04716.50
5.4.70.0000.05716.49
5.4.60.0100.07016.48
5.4.50.0070.06716.39
5.4.40.0000.05716.48
5.4.30.0030.05716.45
5.4.20.0070.03316.48
5.4.10.0030.06316.45
5.4.00.0070.07015.83
5.3.290.0000.08014.70
5.3.280.0030.05014.65
5.3.270.0070.07714.66
5.3.260.0030.08014.53
5.3.250.0000.07314.63
5.3.240.0070.04714.67
5.3.230.0030.08014.64
5.3.220.0000.07314.64
5.3.210.0030.06714.63
5.3.200.0030.07314.57
5.3.190.0070.05314.61
5.3.180.0070.07314.64
5.3.170.0100.03714.63
5.3.160.0070.07314.61
5.3.150.0100.06714.57
5.3.140.0000.08014.48
5.3.130.0030.04714.57
5.3.120.0030.08014.47
5.3.110.0070.04014.48
5.3.100.0030.08013.96
5.3.90.0070.07314.08
5.3.80.0030.06314.09
5.3.70.0000.05014.06
5.3.60.0070.06014.06
5.3.50.0030.06713.98
5.3.40.0100.07014.00
5.3.30.0100.06013.84
5.3.20.0030.07313.75
5.3.10.0000.07313.68
5.3.00.0070.07013.70
5.2.170.0000.07012.25
5.2.160.0030.06012.25
5.2.150.0000.06012.25
5.2.140.0000.06712.25
5.2.130.0000.04012.25
5.2.120.0000.06012.25
5.2.110.0070.06012.25
5.2.100.0070.05312.25
5.2.90.0030.04312.25
5.2.80.0070.05312.25
5.2.70.0030.03712.25
5.2.60.0070.04312.25
5.2.50.0000.06312.25
5.2.40.0000.07012.25
5.2.30.0030.06012.25
5.2.20.0000.06312.25
5.2.10.0030.06012.25
5.2.00.0070.06012.25
5.1.60.0000.05712.25
5.1.50.0100.05012.25
5.1.40.0000.05012.25
5.1.30.0030.04712.25
5.1.20.0000.03312.25
5.1.10.0070.05012.25
5.1.00.0000.05712.25
5.0.50.0030.04712.25
5.0.40.0030.04012.25
5.0.30.0100.03712.25
5.0.20.0000.04012.25
5.0.10.0100.04012.25
5.0.00.0070.05712.25
4.4.90.0100.02712.25
4.4.80.0000.03712.25
4.4.70.0030.03312.25
4.4.60.0030.03012.25
4.4.50.0000.03012.25
4.4.40.0070.04312.25
4.4.30.0000.03312.25
4.4.20.0000.03712.25
4.4.10.0000.03712.25
4.4.00.0000.06012.25
4.3.110.0000.03712.25
4.3.100.0000.02712.25
4.3.90.0100.02712.25
4.3.80.0000.05312.25
4.3.70.0000.03712.25
4.3.60.0000.03012.25
4.3.50.0000.03712.25
4.3.40.0000.05312.25
4.3.30.0030.03012.25
4.3.20.0000.04012.25
4.3.10.0030.03012.25
4.3.00.0000.03712.25

preferences:
44.15 ms | 401 KiB | 5 Q