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 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.0210.00018.25
8.3.50.0100.00721.91
8.3.40.0110.00718.83
8.3.30.0030.01718.90
8.3.20.0040.00420.46
8.3.10.0040.00422.04
8.3.00.0030.00522.34
8.2.180.0110.00718.54
8.2.170.0090.00922.96
8.2.160.0140.00020.83
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0020.00526.16
8.2.120.0030.00517.63
8.2.110.0100.00022.38
8.2.100.0060.00619.76
8.2.90.0040.00419.22
8.2.80.0000.00817.97
8.2.70.0080.00017.63
8.2.60.0040.00418.05
8.2.50.0050.00518.07
8.2.40.0080.00018.34
8.2.30.0080.00018.01
8.2.20.0030.00617.56
8.2.10.0000.00817.77
8.2.00.0040.00417.63
8.1.280.0140.00025.92
8.1.270.0080.00023.88
8.1.260.0080.00026.35
8.1.250.0090.01028.09
8.1.240.0060.00323.95
8.1.230.0080.00419.14
8.1.220.0050.00317.79
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0090.00317.41
8.1.180.0050.00318.10
8.1.170.0080.00018.66
8.1.160.0000.00822.14
8.1.150.0000.00918.60
8.1.140.0040.00417.52
8.1.130.0000.00717.97
8.1.120.0050.00317.50
8.1.110.0040.00417.44
8.1.100.0000.00817.45
8.1.90.0000.00717.50
8.1.80.0050.00217.42
8.1.70.0030.00517.46
8.1.60.0000.00817.59
8.1.50.0050.00317.41
8.1.40.0100.00017.49
8.1.30.0000.00817.59
8.1.20.0040.00417.49
8.1.10.0080.00017.45
8.1.00.0040.00417.45
8.0.300.0000.00718.77
8.0.290.0070.00017.02
8.0.280.0000.00818.51
8.0.270.0000.00717.31
8.0.260.0000.00716.81
8.0.250.0000.00717.09
8.0.240.0000.00916.86
8.0.230.0040.00417.00
8.0.220.0020.00516.79
8.0.210.0000.00716.81
8.0.200.0000.00717.04
8.0.190.0070.00316.98
8.0.180.0040.00416.93
8.0.170.0040.00416.95
8.0.160.0000.00716.93
8.0.150.0070.00016.88
8.0.140.0000.00716.83
8.0.130.0060.00013.32
8.0.120.0080.00016.81
8.0.110.0030.00616.80
8.0.100.0050.00316.84
8.0.90.0040.00416.77
8.0.80.0030.01816.83
8.0.70.0000.00716.70
8.0.60.0040.00417.01
8.0.50.0040.00416.73
8.0.30.0070.01417.19
8.0.20.0130.01017.40
8.0.10.0000.00816.84
8.0.00.0070.01016.66
7.4.330.0030.00315.16
7.4.320.0000.00616.44
7.4.300.0030.00416.46
7.4.290.0070.00016.53
7.4.280.0000.00716.43
7.4.270.0000.00716.34
7.4.260.0030.00316.46
7.4.250.0020.00516.45
7.4.240.0030.00416.51
7.4.230.0000.00816.28
7.4.220.0090.00916.49
7.4.210.0090.00616.51
7.4.200.0040.00416.52
7.4.190.0040.00416.51
7.4.160.0070.01116.53
7.4.150.0160.01617.40
7.4.140.0120.00617.86
7.4.130.0080.01216.51
7.4.120.0060.01316.56
7.4.110.0130.01016.49
7.4.100.0140.00616.61
7.4.90.0120.00916.41
7.4.80.0030.01619.39
7.4.70.0130.00716.24
7.4.60.0120.00616.61
7.4.50.0060.00316.20
7.4.40.0120.00622.77
7.4.30.0060.01516.41
7.4.10.0130.00714.83
7.4.00.0080.01014.76
7.3.330.0050.00013.05
7.3.320.0000.00512.93
7.3.310.0040.00416.29
7.3.300.0030.00416.24
7.3.290.0070.01416.18
7.3.280.0070.00916.24
7.3.270.0160.00717.40
7.3.260.0070.01016.36
7.3.250.0100.01116.24
7.3.240.0140.00316.51
7.3.230.0110.00816.39
7.3.210.0110.00716.39
7.3.200.0060.01319.39
7.3.190.0060.01316.27
7.3.180.0110.00716.38
7.3.170.0080.00916.27
7.3.160.0170.00016.35
7.3.130.0120.00615.04
7.3.120.0130.00614.87
7.3.110.0130.00614.88
7.3.100.0060.00915.02
7.3.90.0030.01314.75
7.3.80.0060.00314.93
7.3.70.0070.00714.78
7.3.60.0030.01114.95
7.3.50.0060.01314.85
7.3.40.0130.00014.59
7.3.30.0090.00614.67
7.3.20.0070.01116.59
7.3.10.0080.00716.23
7.3.00.0120.00316.49
7.2.330.0060.01316.41
7.2.320.0060.01516.59
7.2.310.0060.01716.57
7.2.300.0060.01216.34
7.2.290.0030.01516.28
7.2.260.0100.00915.19
7.2.250.0030.01614.88
7.2.240.0000.01415.12
7.2.230.0100.01015.13
7.2.220.0000.01814.91
7.2.210.0030.01215.21
7.2.200.0040.01414.77
7.2.190.0170.00415.11
7.2.180.0030.00914.75
7.2.170.0030.01214.69
7.2.160.0070.01015.03
7.2.150.0060.01017.02
7.2.140.0100.01016.77
7.2.130.0070.01216.75
7.2.120.0090.00516.57
7.2.110.0100.00516.93
7.2.100.0010.01516.78
7.2.90.0080.00716.80
7.2.80.0060.00816.64
7.2.70.0060.01116.80
7.2.60.0020.01416.73
7.2.50.0080.00816.64
7.2.40.0130.00416.91
7.2.30.0050.01016.91
7.2.20.0080.00716.78
7.2.10.0110.00416.88
7.2.00.0070.00716.79
7.1.330.0100.00415.81
7.1.320.0030.01015.61
7.1.310.0030.01315.50
7.1.300.0030.01315.71
7.1.290.0080.00815.75
7.1.280.0070.00715.43
7.1.270.0060.01015.37
7.1.260.0120.00415.96
7.1.250.0090.00715.66
7.1.240.0120.00615.77
7.1.230.0000.01515.71
7.1.220.0080.00815.70
7.1.210.0080.00315.79
7.1.200.0060.01015.63
7.1.190.0060.00715.46
7.1.180.0030.01415.79
7.1.170.0000.01615.77
7.1.160.0130.00015.53
7.1.150.0080.00515.62
7.1.140.0070.00715.65
7.1.130.0080.00715.40
7.1.120.0000.01515.69
7.1.110.0060.00715.80
7.1.100.0040.01215.79
7.1.90.0060.00915.61
7.1.80.0070.00415.54
7.1.70.0020.01116.33
7.1.60.0060.01317.69
7.1.50.0090.01016.41
7.1.40.0070.00815.55
7.1.30.0030.01015.61
7.1.20.0030.01315.57
7.1.10.0140.00315.50
7.1.00.0040.04519.20
7.0.330.0110.00615.00
7.0.320.0030.00715.37
7.0.310.0070.01015.29
7.0.300.0060.01015.31
7.0.290.0030.01115.15
7.0.280.0000.01214.97
7.0.270.0060.01015.48
7.0.260.0030.01414.93
7.0.250.0030.01315.36
7.0.240.0070.01115.47
7.0.230.0060.00915.34
7.0.220.0030.01015.16
7.0.210.0030.01415.03
7.0.200.0120.00415.84
7.0.190.0040.01115.20
7.0.180.0040.01115.38
7.0.170.0000.01115.25
7.0.160.0040.01115.08
7.0.150.0100.00715.33
7.0.140.0050.03918.73
7.0.130.0080.00815.29
7.0.120.0120.00415.18
7.0.110.0060.00714.99
7.0.100.0050.00515.30
7.0.90.0090.01015.03
7.0.80.0090.00615.21
7.0.70.0030.00915.40
7.0.60.0080.04417.65
7.0.50.0060.04816.58
7.0.40.0020.04015.58
7.0.30.0050.04815.55
7.0.20.0030.04515.45
7.0.10.0070.04615.61
7.0.00.0070.03215.51
5.6.400.0030.01614.44
5.6.390.0090.00714.25
5.6.380.0110.00414.46
5.6.370.0030.01014.42
5.6.360.0060.01314.47
5.6.350.0070.00714.50
5.6.340.0030.01314.00
5.6.330.0030.01414.13
5.6.320.0060.01014.15
5.6.310.0060.00714.00
5.6.300.0110.00314.46
5.6.290.0070.01014.45
5.6.280.0040.04317.90
5.6.270.0070.00714.59
5.6.260.0030.00914.30
5.6.250.0050.01314.28
5.6.240.0100.00714.58
5.6.230.0030.01314.54
5.6.220.0000.01414.54
5.6.210.0110.04217.59
5.6.200.0020.04916.47
5.6.190.0110.04516.31
5.6.180.0030.04816.21
5.6.170.0070.02516.21
5.6.160.0030.03016.26
5.6.150.0080.04616.37
5.6.140.0070.02316.32
5.6.130.0080.03116.22
5.6.120.0070.02416.27
5.6.110.0080.02916.18
5.6.100.0080.02816.41
5.6.90.0030.05216.49
5.6.80.0090.02615.88
5.6.70.0050.03915.95
5.6.60.0090.04316.10
5.6.50.0110.03515.82
5.6.40.0110.02316.01
5.6.30.0030.03215.88
5.6.20.0030.03015.86
5.6.10.0070.02015.91
5.6.00.0030.02615.96
5.5.380.0060.01014.27
5.5.370.0090.00614.45
5.5.360.0040.01513.97
5.5.350.0160.03117.39
5.5.340.0050.04716.03
5.5.330.0070.03916.34
5.5.320.0050.02616.20
5.5.310.0060.02516.26
5.5.300.0050.03216.42
5.5.290.0070.02916.13
5.5.280.0090.02215.99
5.5.270.0080.02516.12
5.5.260.0090.03616.20
5.5.250.0070.04016.13
5.5.240.0100.03215.79
5.5.230.0080.02315.83
5.5.220.0030.03215.92
5.5.210.0050.04515.75
5.5.200.0050.04315.88
5.5.190.0100.04216.00
5.5.180.0030.03215.87
5.5.170.0070.00714.08
5.5.160.0040.03815.72
5.5.150.0060.02715.85
5.5.140.0050.03015.81
5.5.130.0110.02315.80
5.5.120.0040.02915.93
5.5.110.0050.04615.83
5.5.100.0100.03915.87
5.5.90.0060.02615.74
5.5.80.0060.03015.57
5.5.70.0100.03715.78
5.5.60.0050.03915.94
5.5.50.0060.02615.68
5.5.40.0060.02715.89
5.5.30.0080.04215.70
5.5.20.0050.03015.68
5.5.10.0050.02715.81
5.5.00.0060.04115.80
5.4.450.0080.03815.34
5.4.440.0040.03115.35
5.4.430.0050.04715.33
5.4.420.0060.03815.34
5.4.410.0120.02915.28
5.4.400.0000.02915.18
5.4.390.0050.03015.13
5.4.380.0100.03715.11
5.4.370.0100.03115.13
5.4.360.0040.03715.14
5.4.350.0050.02715.09
5.4.340.0070.02915.15
5.4.330.0060.00711.24
5.4.320.0090.01915.13
5.4.310.0050.03915.18
5.4.300.0110.03915.20
5.4.290.0080.03715.12
5.4.280.0070.03015.13
5.4.270.0080.03315.16
5.4.260.0080.02515.04
5.4.250.0060.02115.12
5.4.240.0020.03415.18
5.4.230.0050.03015.13
5.4.220.0050.04315.24
5.4.210.0060.02215.16
5.4.200.0050.02415.11
5.4.190.0080.03715.24
5.4.180.0110.03215.17
5.4.170.0020.03615.12
5.4.160.0070.02515.13
5.4.150.0050.04015.13
5.4.140.0050.04113.78
5.4.130.0050.02613.75
5.4.120.0090.03313.79
5.4.110.0020.02513.79
5.4.100.0070.02213.92
5.4.90.0030.04013.81
5.4.80.0140.02713.75
5.4.70.0090.02213.79
5.4.60.0030.02113.86
5.4.50.0030.02213.77
5.4.40.0060.02513.79
5.4.30.0050.02213.74
5.4.20.0080.03913.83
5.4.10.0080.02813.84
5.4.00.0050.04313.56
5.3.290.0070.08014.70
5.3.280.0030.07014.48
5.3.270.0030.05014.49
5.3.260.0130.07014.66
5.3.250.0130.06314.64
5.3.240.0100.07014.59
5.3.230.0070.06714.63
5.3.220.0030.04014.55
5.3.210.0030.04014.56
5.3.200.0000.04314.41
5.3.190.0130.05014.59
5.3.180.0030.04014.71
5.3.170.0000.08014.59
5.3.160.0070.03314.57
5.3.150.0100.07314.41
5.3.140.0070.03714.55
5.3.130.0000.07014.58
5.3.120.0000.06014.44
5.3.110.0030.06714.58
5.3.100.0070.07014.02
5.3.90.0100.05314.05
5.3.80.0130.06314.16
5.3.70.0070.07714.16
5.3.60.0070.06313.92
5.3.50.0070.05713.95
5.3.40.0030.03713.98
5.3.30.0070.03313.90
5.3.20.0130.07013.70
5.3.10.0070.04713.69
5.3.00.0170.05013.66
5.2.170.0030.05711.35
5.2.160.0030.04011.13
5.2.150.0030.05011.18
5.2.140.0070.04011.20
5.2.130.0100.04711.16
5.2.120.0030.05311.09
5.2.110.0100.06011.07
5.2.100.0030.04011.14
5.2.90.0100.04311.15
5.2.80.0070.04711.10
5.2.70.0070.06011.08
5.2.60.0030.06711.02
5.2.50.0030.06010.93
5.2.40.0070.06011.05
5.2.30.0070.06310.82
5.2.20.0030.04711.00
5.2.10.0000.05710.93
5.2.00.0000.04310.70
5.1.60.0070.04010.05
5.1.50.0100.0309.89
5.1.40.0030.02710.12
5.1.30.0070.02310.41
5.1.20.0000.03010.42
5.1.10.0030.03710.05
5.1.00.0000.06310.21
5.0.50.0070.0408.61
5.0.40.0000.0308.45
5.0.30.0030.0538.45
5.0.20.0070.0208.45
5.0.10.0030.0208.45
5.0.00.0000.0338.45
4.4.90.0030.0378.45
4.4.80.0030.0208.45
4.4.70.0030.0338.45
4.4.60.0000.0308.45
4.4.50.0070.0238.45
4.4.40.0030.0478.45
4.4.30.0100.0178.45
4.4.20.0030.0178.45
4.4.10.0000.0378.45
4.4.00.0000.0608.45
4.3.110.0070.0338.45
4.3.100.0030.0238.45
4.3.90.0000.0208.45
4.3.80.0000.0538.45
4.3.70.0000.0208.45
4.3.60.0030.0278.45
4.3.50.0000.0338.45
4.3.40.0030.0538.45
4.3.30.0000.0338.45
4.3.20.0030.0308.45
4.3.10.0070.0138.45
4.3.00.0000.0378.45

preferences:
43.23 ms | 401 KiB | 5 Q