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", ".", "!!", "###"); foreach($cmds as $cmd) { echo shell_exec($cmd); }

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.40.0250.05518.46
8.3.30.0350.03918.68
8.3.20.0160.02518.66
8.3.10.0110.03120.46
8.3.00.0190.02417.63
8.2.170.0500.05118.98
8.2.160.0310.05222.96
8.2.150.0170.02424.18
8.2.140.0130.02724.66
8.2.130.0160.02326.16
8.2.120.0230.01819.95
8.2.110.0250.02321.07
8.2.100.0260.03217.84
8.2.90.0100.02920.98
8.2.80.0200.01519.52
8.2.70.0150.01917.63
8.2.60.0150.02118.04
8.2.50.0200.01418.07
8.2.40.0150.01618.16
8.2.30.0160.01618.04
8.2.20.0140.02117.81
8.2.10.0150.02017.72
8.2.00.0210.01917.76
8.1.270.0220.02222.19
8.1.260.0140.02826.35
8.1.250.0130.02928.09
8.1.240.0090.03723.96
8.1.230.0260.03620.87
8.1.220.0160.01917.79
8.1.210.0130.02518.82
8.1.200.0180.02017.35
8.1.190.0170.01517.53
8.1.180.0170.01618.10
8.1.170.0190.01419.02
8.1.160.0130.02218.97
8.1.150.0160.01718.79
8.1.140.0140.01817.53
8.1.130.0110.02017.89
8.1.120.0150.01617.54
8.1.110.0060.02317.45
8.1.100.0080.02217.55
8.1.90.0140.01817.52
8.1.80.0100.02217.63
8.1.70.0150.01717.47
8.1.60.0170.02617.57
8.1.50.0200.02117.58
8.1.40.0220.01617.56
8.1.30.0110.02617.59
8.1.20.0200.02117.69
8.1.10.0170.02317.58
8.1.00.0180.01917.42
8.0.300.0100.02420.11
8.0.290.0200.01516.72
8.0.280.0150.01818.40
8.0.270.0060.02617.21
8.0.260.0120.01916.96
8.0.250.0160.01816.94
8.0.240.0140.02417.06
8.0.230.0190.01416.92
8.0.220.0130.01516.86
8.0.210.0120.02016.88
8.0.200.0130.01816.94
8.0.190.0220.02017.10
8.0.180.0160.02316.97
8.0.170.0220.02417.04
8.0.160.0070.03016.87
8.0.150.0170.02616.89
8.0.140.0140.02916.89
8.0.130.0120.02213.38
8.0.120.0140.02616.96
8.0.110.0160.02616.79
8.0.100.0190.02216.97
8.0.90.0110.02816.95
8.0.80.0490.05717.04
8.0.70.0130.02616.97
8.0.60.0200.02316.84
8.0.50.0190.01916.98
8.0.30.0490.08717.15
8.0.20.0510.09117.06
8.0.10.0070.03217.18
8.0.00.0420.08016.75
7.4.330.0130.01713.08
7.4.320.0120.01816.45
7.4.300.0140.01716.44
7.4.290.0180.02116.49
7.4.280.0170.02816.63
7.4.270.0130.02316.52
7.4.260.0200.01713.30
7.4.250.0250.01916.38
7.4.240.0150.02416.55
7.4.230.0150.02416.41
7.4.220.0480.07616.67
7.4.210.0410.05916.58
7.4.200.0160.02316.71
7.4.190.0230.01616.49
7.4.160.0370.07916.62
7.4.150.0480.08616.32
7.4.140.0460.08316.50
7.4.130.0430.08516.67
7.4.120.0400.10016.57
7.4.110.0390.07616.59
7.4.100.0400.08516.51
7.4.90.0310.08016.43
7.4.80.0400.07516.48
7.4.70.0240.07316.56
7.4.60.0290.07116.41
7.4.50.0140.02116.73
7.4.40.0210.03516.74
7.4.30.0380.05116.62
7.4.00.0840.09915.15
7.3.330.0150.02813.10
7.3.320.0150.02413.20
7.3.310.0170.02516.34
7.3.300.0170.02016.38
7.3.290.0340.06316.38
7.3.280.0410.05516.33
7.3.270.0580.10016.34
7.3.260.0560.08916.48
7.3.250.0500.08316.54
7.3.240.0460.08916.51
7.3.230.0430.06916.63
7.3.210.0580.08016.44
7.3.200.0360.08219.39
7.3.190.0540.09016.49
7.3.180.0350.05716.44
7.3.170.0340.05916.28
7.3.160.0260.06416.60
7.3.120.0830.07714.73
7.2.330.0450.09016.35
7.2.320.0340.06316.62
7.2.310.0430.06616.75
7.2.300.0220.06316.34
7.2.290.0360.05016.43
7.2.60.1050.08516.71
7.2.00.1060.05819.15
7.1.200.6920.06615.54
7.1.100.0650.05417.97
7.1.70.0710.03717.25
7.1.60.1180.08119.40
7.1.50.0830.06816.76
7.1.00.0830.07322.40
7.0.200.0520.03514.94
7.0.140.0730.07022.18
7.0.130.0870.05722.11
7.0.120.0770.06722.09
7.0.110.0670.09722.09
7.0.100.0630.05322.06
7.0.90.0770.07321.96
7.0.80.0730.05722.07
7.0.70.0770.07322.02
7.0.60.0800.06722.11
7.0.50.0830.07022.23
7.0.40.0770.07022.12
7.0.30.0830.06722.25
7.0.20.0800.07022.18
7.0.10.0730.07322.21
7.0.00.0730.05722.15
5.6.280.0570.06721.09
5.6.270.0500.07321.16
5.6.260.0570.06721.18
5.6.250.0500.08021.12
5.6.240.0400.08720.84
5.6.230.0500.08021.01
5.6.220.0530.07021.19
5.6.210.0530.06721.06
5.6.200.0600.06721.02
5.6.190.0500.08021.14
5.6.180.0500.07721.06
5.6.170.0570.06021.13
5.6.160.0570.06320.79
5.6.150.0530.07721.16
5.6.140.0570.06321.11
5.6.130.0570.07021.16
5.6.120.0530.06720.88
5.6.110.0400.09020.99
5.6.100.0300.10021.04
5.6.90.0430.08321.14
5.6.80.0500.07020.50
5.6.70.0400.07720.38
5.6.60.0570.06720.45
5.6.50.0400.08020.47
5.6.40.0500.07020.27
5.6.30.0430.07720.45
5.6.20.0300.08020.47
5.6.10.0570.05320.23
5.6.00.0470.05720.43
5.5.380.0430.07017.68
5.5.370.0470.07017.68
5.5.360.0470.07017.61
5.5.350.0500.06017.68
5.5.340.0470.07318.19
5.5.330.0500.06718.19
5.5.320.0300.08018.23
5.5.310.0430.07717.93
5.5.300.0470.06717.96
5.5.290.0430.07718.26
5.5.280.0570.06718.19
5.5.270.0400.08318.22
5.5.260.0300.09318.00
5.5.250.0500.06717.68
5.5.240.0430.07017.36
5.5.230.0530.06017.63
5.5.220.0500.06317.56
5.5.210.0430.06717.60
5.5.200.0400.07017.54
5.5.190.0430.06317.23
5.5.180.0500.06717.63
5.5.160.0430.07317.60
5.5.150.0430.05717.37
5.5.140.0400.07717.53
5.5.130.0430.07017.32
5.5.120.0300.04717.30
5.5.110.0430.06717.27
5.5.100.0470.04717.21
5.5.90.0500.05317.13
5.5.80.0570.05717.11
5.5.70.0370.07717.26
5.5.60.0530.06317.36
5.5.50.0370.07717.26
5.5.40.0400.07317.37
5.5.30.0470.06017.36
5.5.20.0470.07017.46
5.5.10.0400.08017.42
5.5.00.0500.06717.51
5.4.450.0370.08719.41
5.4.440.0530.06719.51
5.4.430.0300.09019.41
5.4.420.0400.07719.41
5.4.410.0500.07019.13
5.4.400.0500.06719.34
5.4.390.0470.07018.98
5.4.380.0530.06319.21
5.4.370.0630.07319.09
5.4.360.0700.05319.09
5.4.350.0570.06018.97
5.4.340.0570.04719.20
5.4.320.0500.06719.12
5.4.310.0400.07319.04
5.4.300.0570.06319.25
5.4.290.0500.06719.18
5.4.280.0430.07318.95
5.4.270.0400.04319.12
5.4.260.0400.07719.09
5.4.250.0500.06718.96
5.4.240.0470.07018.96
5.4.230.0570.06318.93
5.4.220.0400.07319.24
5.4.210.0500.05719.19
5.4.200.0430.07319.33
5.4.190.0470.06719.04
5.4.180.0570.06019.04
5.4.170.0530.06019.17
5.4.160.0470.07018.93
5.4.150.0470.07319.07
5.4.140.0500.06316.41
5.4.130.0400.06716.41
5.4.120.0400.07016.46
5.4.110.0500.06016.45
5.4.100.0370.07316.27
5.4.90.0430.04316.27
5.4.80.0330.07316.30
5.4.70.0370.07716.55
5.4.60.0500.06316.34
5.4.50.0400.06716.24
5.4.40.0470.06016.29
5.4.30.0470.05016.19
5.4.20.0470.06016.27
5.4.10.0400.07016.42
5.4.00.0470.06015.75
5.3.290.0400.06714.73
5.3.280.0330.05314.54
5.3.270.0330.06714.44
5.3.260.0300.08014.46
5.3.250.0300.07714.63
5.3.240.0430.06714.75
5.3.230.0470.05314.52
5.3.220.0370.06314.50
5.3.210.0400.07314.70
5.3.200.0400.06714.57
5.3.190.0470.05314.64
5.3.180.0400.07014.49
5.3.170.0430.06014.41
5.3.160.0430.06314.42
5.3.150.0300.06714.51
5.3.140.0330.07014.63
5.3.130.0370.07314.63
5.3.120.0370.07314.68
5.3.110.0330.07314.38
5.3.100.0400.06014.20
5.3.90.0430.06313.96
5.3.80.0400.06014.09
5.3.70.0500.05014.02
5.3.60.0300.06714.07
5.3.50.0430.05313.80
5.3.40.0330.06014.08
5.3.30.0500.05713.98
5.3.20.0370.06013.68
5.3.10.0400.06013.61
5.3.00.0500.04713.57

preferences:
49.64 ms | 400 KiB | 5 Q