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 $cmd." => ".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.60.0330.04318.31
8.3.50.0590.04222.00
8.3.40.0330.04118.67
8.3.30.0310.04619.09
8.3.20.0210.02020.35
8.3.10.0200.01923.64
8.3.00.0110.02820.54
8.2.180.0260.03616.74
8.2.170.0480.04122.96
8.2.160.0440.05321.96
8.2.150.0160.02624.18
8.2.140.0210.01924.66
8.2.130.0180.02326.16
8.2.120.0170.02122.34
8.2.110.0300.03420.47
8.2.100.0240.03317.91
8.2.90.0130.01917.91
8.2.80.0120.02018.22
8.2.70.0100.02417.63
8.2.60.0160.01518.04
8.2.50.0150.01818.07
8.2.40.0150.01819.30
8.2.30.0160.01518.15
8.2.20.0160.01417.86
8.2.10.0150.01719.51
8.2.00.0130.02917.72
8.1.280.0310.03125.92
8.1.270.0080.03423.99
8.1.260.0160.02526.35
8.1.250.0140.03028.09
8.1.240.0130.03323.91
8.1.230.0200.03824.01
8.1.220.0170.02217.74
8.1.210.0140.02218.77
8.1.200.0120.02617.35
8.1.190.0150.01917.36
8.1.180.0200.02018.10
8.1.170.0160.01718.64
8.1.160.0120.01822.16
8.1.150.0070.02218.67
8.1.140.0140.01617.48
8.1.130.0110.02017.88
8.1.120.0130.01917.55
8.1.110.0000.03017.52
8.1.100.0060.02517.60
8.1.90.0180.01317.52
8.1.80.0150.01417.54
8.1.70.0040.02717.45
8.1.60.0190.02217.71
8.1.50.0160.02617.61
8.1.40.0200.01917.49
8.1.30.0190.01817.57
8.1.20.0130.02617.77
8.1.10.0140.02817.58
8.1.00.0180.02017.41
8.0.300.0130.01820.11
8.0.290.0180.01816.88
8.0.280.0070.02518.50
8.0.270.0090.02217.34
8.0.260.0200.01916.79
8.0.250.0180.01316.94
8.0.240.0150.01316.87
8.0.230.0080.02417.04
8.0.220.0140.01616.89
8.0.210.0110.02017.02
8.0.200.0140.01416.86
8.0.190.0210.02017.13
8.0.180.0170.02617.00
8.0.170.0110.02616.98
8.0.160.0170.02217.00
8.0.150.0210.02016.89
8.0.140.0180.02116.95
8.0.130.0120.02513.39
8.0.120.0140.02616.99
8.0.110.0180.01717.01
8.0.100.0120.02917.02
8.0.90.0240.01717.03
8.0.80.0290.06616.98
8.0.70.0140.02717.00
8.0.60.0210.01816.84
8.0.50.0160.02316.85
8.0.30.0460.08617.18
8.0.20.0360.10317.40
8.0.10.0170.01917.05
8.0.00.0410.07816.92
7.4.330.0130.01615.07
7.4.320.0130.01716.63
7.4.300.0160.01716.61
7.4.290.0130.02416.57
7.4.280.0130.02416.61
7.4.270.0160.02216.41
7.4.260.0180.02216.64
7.4.250.0160.02516.40
7.4.240.0200.02016.54
7.4.230.0220.01716.36
7.4.220.0430.05516.48
7.4.210.0300.05016.57
7.4.200.0110.02616.45
7.4.190.0230.01816.65
7.4.160.0330.08216.41
7.4.150.0560.08117.40
7.4.140.0430.09217.86
7.4.130.0420.08316.54
7.4.120.0310.09016.66
7.4.110.0430.08816.66
7.4.100.0590.10716.61
7.4.90.0640.09916.56
7.4.80.0310.06416.58
7.4.70.0260.06416.45
7.4.60.0300.06116.40
7.4.50.0140.02016.27
7.4.40.0210.05022.77
7.4.30.0280.08316.48
7.4.00.0930.08415.09
7.3.330.0190.01713.23
7.3.320.0120.02513.20
7.3.310.0120.02916.22
7.3.300.0170.02416.34
7.3.290.0330.04616.41
7.3.280.0370.05716.37
7.3.270.0390.09017.40
7.3.260.0480.09616.43
7.3.250.0410.09116.41
7.3.240.0330.08216.43
7.3.230.0350.07716.42
7.3.210.0470.10216.36
7.3.200.0470.07919.39
7.3.190.0400.06616.36
7.3.180.0280.05716.31
7.3.170.0300.07016.64
7.3.160.0320.05216.62
7.3.120.0880.07914.87
7.2.330.0380.07216.56
7.2.320.0260.08216.41
7.2.310.0320.06416.41
7.2.300.0380.06816.54
7.2.290.0260.06216.56
7.2.80.1730.06416.59
7.2.60.0930.04216.66
7.2.00.0660.05219.39
7.1.202.0110.07615.37
7.1.100.0850.04418.36
7.1.70.0810.03817.19
7.1.60.0800.03517.40
7.1.50.0610.04117.10
7.1.40.0630.04416.92
7.1.30.0590.04416.92
7.1.20.0760.03716.94
7.1.10.0640.04116.92
7.1.00.0630.04016.92
7.0.200.0620.03716.92
7.0.190.0600.04316.92
7.0.180.0800.03816.92
7.0.170.0630.03916.92
7.0.160.0680.04916.92
7.0.150.0690.03616.92
7.0.140.0610.03916.92
7.0.130.0660.03616.92
7.0.120.0860.03316.92
7.0.110.0620.03616.92
7.0.100.0670.03816.92
7.0.90.0640.03316.92
7.0.80.0650.03716.92
7.0.70.0670.03616.92
7.0.60.0660.03316.92
7.0.50.0580.03616.92
7.0.40.0650.03716.92
7.0.30.0630.03116.92
7.0.20.0580.03516.92
7.0.10.0590.04116.92
7.0.00.0640.03516.92
5.6.300.0650.08520.95
5.6.290.0290.09620.70
5.6.280.0470.07521.03
5.6.270.0430.08620.91
5.6.260.0500.07421.03
5.6.250.0430.08520.90
5.6.240.0450.08021.00
5.6.230.0470.07420.96
5.6.220.0400.09220.99
5.6.210.0450.08220.91
5.6.200.0460.07821.02
5.6.190.0540.07120.88
5.6.180.0430.07921.02
5.6.170.0500.06720.87
5.6.160.0610.07920.95
5.6.150.0390.08520.91
5.6.140.0440.08221.02
5.6.130.0400.07120.94
5.6.120.0490.07621.05
5.6.110.0520.08120.99
5.6.100.0370.08221.04
5.6.90.0440.08421.02
5.6.80.0340.08120.14
5.6.70.0410.08420.43
5.6.60.0230.08920.21
5.6.50.0480.07320.14
5.6.40.0380.08620.19
5.6.30.0480.08520.27
5.6.20.0400.07020.20
5.6.10.0420.08420.11
5.6.00.0430.06720.37
5.5.380.0650.06517.61
5.5.370.0370.06817.59
5.5.360.0340.07717.56
5.5.350.0360.06217.55
5.5.340.0390.06917.78
5.5.330.0360.06817.96
5.5.320.0340.07517.80
5.5.310.0280.07918.13
5.5.300.0430.10918.04
5.5.290.0300.07918.12
5.5.280.0410.07117.95
5.5.270.0370.07118.11
5.5.260.0390.07517.99
5.5.250.0370.07618.00
5.5.240.0280.08017.50
5.5.230.0390.06417.50
5.5.220.0480.08117.13
5.5.210.0410.09017.33
5.5.200.0350.07017.42
5.5.190.0330.07017.46
5.5.180.0330.07417.48
5.5.160.0340.07117.39
5.5.150.0350.07117.30
5.5.140.0420.06517.28
5.5.130.0290.08217.38
5.5.120.0370.12417.47
5.5.110.0350.06917.29
5.5.100.0490.06417.30
5.5.90.0330.07017.19
5.5.80.0370.06517.36
5.5.70.0410.08017.34
5.5.60.0320.08117.18
5.5.50.0360.08217.38
5.5.40.0460.07417.28
5.5.30.0360.06217.31
5.5.20.0340.07417.19
5.5.10.0320.07517.35
5.5.00.0350.07117.37
5.4.450.0480.06619.34
5.4.440.0430.06919.25
5.4.430.0470.07119.38
5.4.420.0360.07619.28
5.4.410.0440.06319.33
5.4.400.0280.07919.07
5.4.390.0420.08319.19
5.4.380.0290.09219.02
5.4.370.0550.10718.92
5.4.360.0430.08119.04
5.4.350.0380.07619.04
5.4.340.0310.08518.86
5.4.320.0390.06519.09
5.4.310.0380.07218.93
5.4.300.0410.09119.05
5.4.290.0360.07218.91
5.4.280.0310.08119.02
5.4.270.0380.06519.12
5.4.260.0320.07018.84
5.4.250.0290.07618.93
5.4.240.0370.06818.83
5.4.230.0340.11719.00
5.4.220.0430.06519.10
5.4.210.0420.07219.03
5.4.200.0440.06918.97
5.4.190.0420.08319.03
5.4.180.0370.06719.20
5.4.170.0360.07519.05
5.4.160.0280.08019.01
5.4.150.0300.07819.02
5.4.140.0270.07016.92
5.4.130.0340.06416.92
5.4.120.0450.09716.92
5.4.110.0320.06816.92
5.4.100.0360.06816.92
5.4.90.0400.06916.92
5.4.80.0340.06316.92
5.4.70.0300.06516.92
5.4.60.0310.05916.92
5.4.50.0370.06916.92
5.4.40.0410.06816.92
5.4.30.0380.05816.92
5.4.20.0370.06316.92
5.4.10.0390.05716.92
5.4.00.0440.07416.92
5.3.290.0310.06816.92
5.3.280.0400.09116.92
5.3.270.0330.06116.92
5.3.260.0280.06916.92
5.3.250.0440.08616.92
5.3.240.0240.06716.92
5.3.230.0290.06816.92
5.3.220.0450.09716.92
5.3.210.0360.06916.92
5.3.200.0420.11416.92
5.3.190.0270.07116.92
5.3.180.0370.05816.92
5.3.170.0240.07016.92
5.3.160.0350.08616.92
5.3.150.0290.06416.92
5.3.140.0410.06816.92
5.3.130.0270.06716.92
5.3.120.0220.08216.92
5.3.110.0410.10316.92
5.3.100.0300.09216.92
5.3.90.0270.07216.92
5.3.80.0260.07716.92
5.3.70.0310.06816.92
5.3.60.0260.06616.92
5.3.50.0280.07416.92
5.3.40.0340.06316.92
5.3.30.0370.06916.92
5.3.20.0350.09316.92
5.3.10.0330.06016.92
5.3.00.0230.07116.92

preferences:
37.92 ms | 401 KiB | 5 Q