3v4l.org

run code in 300+ PHP versions simultaneously
<?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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0100.01018.55
8.3.50.0130.00521.99
8.3.40.0040.01418.98
8.3.30.0110.00318.76
8.3.20.0080.00018.48
8.3.10.0030.00621.05
8.3.00.0050.00321.98
8.2.180.0120.00916.50
8.2.170.0150.00622.96
8.2.160.0080.00620.39
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0030.00621.17
8.2.110.0000.00920.47
8.2.100.0080.00318.03
8.2.90.0060.00319.17
8.2.80.0000.00917.97
8.2.70.0040.00717.63
8.2.60.0050.00317.93
8.2.50.0090.00318.07
8.2.40.0080.00018.03
8.2.30.0050.00321.42
8.2.20.0000.00817.72
8.2.10.0040.00417.82
8.2.00.0040.00417.75
8.1.280.0100.01125.92
8.1.270.0080.00023.99
8.1.260.0090.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00622.41
8.1.230.0110.00020.96
8.1.220.0030.00518.77
8.1.210.0060.00318.96
8.1.200.0060.00317.38
8.1.190.0040.00417.53
8.1.180.0000.00818.10
8.1.170.0040.00418.66
8.1.160.0040.00418.82
8.1.150.0080.00018.70
8.1.140.0040.00417.50
8.1.130.0070.00017.85
8.1.120.0040.00417.37
8.1.110.0110.00017.47
8.1.100.0040.00417.30
8.1.90.0080.00017.45
8.1.80.0030.00417.37
8.1.70.0000.00717.43
8.1.60.0080.00017.47
8.1.50.0040.00417.37
8.1.40.0040.00417.59
8.1.30.0040.00417.65
8.1.20.0080.00017.48
8.1.10.0050.00317.50
8.1.00.0020.00517.31
8.0.300.0000.00720.02
8.0.290.0030.00517.16
8.0.280.0030.00518.50
8.0.270.0050.00216.86
8.0.260.0000.00716.86
8.0.250.0030.00316.89
8.0.240.0050.00316.92
8.0.230.0030.00316.95
8.0.220.0030.00316.96
8.0.210.0040.00416.78
8.0.200.0000.00616.89
8.0.190.0030.00417.00
8.0.180.0040.00416.94
8.0.170.0000.00816.96
8.0.160.0000.00816.79
8.0.150.0000.00716.80
8.0.140.0040.00416.96
8.0.130.0000.00613.41
8.0.120.0090.00016.83
8.0.110.0000.00716.80
8.0.100.0000.00716.76
8.0.90.0030.00516.87
8.0.80.0000.01916.90
8.0.70.0080.00016.77
8.0.60.0070.00016.96
8.0.50.0000.00816.84
8.0.30.0080.01117.25
8.0.20.0060.01317.40
8.0.10.0040.00417.02
8.0.00.0090.00916.64
7.4.330.0040.00014.98
7.4.320.0000.00716.44
7.4.300.0000.00716.35
7.4.290.0020.00516.57
7.4.280.0000.00716.42
7.4.270.0000.00816.61
7.4.260.0030.00313.33
7.4.250.0050.00316.42
7.4.240.0030.00316.52
7.4.230.0000.00716.35
7.4.220.0040.01316.37
7.4.210.0060.00916.49
7.4.200.0030.00316.37
7.4.190.0080.00016.68
7.4.160.0140.00516.56
7.4.150.0070.01117.40
7.4.140.0100.00717.86
7.4.130.0090.01116.43
7.4.120.0090.00916.48
7.4.110.0090.00916.50
7.4.100.0100.01116.56
7.4.90.0090.00816.44
7.4.80.0100.00719.39
7.4.70.0040.01316.41
7.4.60.0030.01416.52
7.4.50.0000.00816.43
7.4.40.0000.01422.77
7.4.30.0100.01116.34
7.4.00.0060.01114.70
7.3.330.0060.00012.96
7.3.320.0000.00713.05
7.3.310.0000.00716.08
7.3.300.0050.00216.23
7.3.290.0150.00016.18
7.3.280.0070.01016.18
7.3.270.0140.00817.40
7.3.260.0090.01218.24
7.3.250.0110.00716.30
7.3.240.0140.01016.27
7.3.230.0100.01016.39
7.3.210.0060.01216.23
7.3.200.0030.01519.39
7.3.190.0100.01016.30
7.3.180.0060.01016.18
7.3.170.0120.00616.35
7.3.160.0030.01716.33
7.3.120.0080.01114.70
7.3.110.0060.01314.65
7.3.100.0120.00414.84
7.3.90.0030.00714.75
7.3.80.0060.00314.77
7.3.70.0060.00314.76
7.3.60.0000.01714.50
7.3.50.0080.00814.65
7.3.40.0120.00314.81
7.3.30.0000.01214.86
7.3.20.0030.00716.55
7.3.10.0110.01116.24
7.3.00.0110.00816.22
7.2.330.0090.01016.61
7.2.320.0070.01116.62
7.2.310.0100.00716.50
7.2.300.0120.00916.64
7.2.290.0130.00416.59
7.2.250.0060.01315.16
7.2.240.0090.01315.02
7.2.230.0060.01214.70
7.2.220.0090.00615.16
7.2.210.0120.00614.75
7.2.200.0040.01114.95
7.2.190.0030.01615.13
7.2.180.0000.01614.61
7.2.170.0070.00415.07
7.2.130.0190.00916.52
7.2.120.0220.00516.34
7.2.110.0150.00916.06
7.2.100.0180.00616.03
7.2.90.0190.01016.53
7.2.80.0160.01016.34
7.2.70.0190.01216.49
7.2.60.0210.00316.71
7.2.50.0120.01216.32
7.2.40.0150.00816.45
7.2.30.0190.00716.86
7.2.20.0210.00316.69
7.2.10.0190.01116.75
7.2.00.0220.00416.48
7.1.330.0070.01015.27
7.1.320.0170.00015.27
7.1.310.0060.00915.70
7.1.300.0080.00815.61
7.1.290.0180.00015.51
7.1.280.0100.00715.77
7.1.270.0060.00915.74
7.1.260.0000.01115.86
7.1.250.0170.00715.29
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

preferences:
41.6 ms | 401 KiB | 5 Q