3v4l.org

run code in 300+ PHP versions simultaneously
<?php function autoload($className) { $className = ltrim($className, '\\'); $fileName = ''; $namespace = ''; if ($lastNsPos = strrpos($className, '\\')) { $namespace = substr($className, 0, $lastNsPos); $className = substr($className, $lastNsPos + 1); $fileName = str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR; } $fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php'; require $fileName; }

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.0070.00718.84
8.3.30.0090.00618.63
8.3.20.0080.00018.63
8.3.10.0040.00420.40
8.3.00.0050.00317.38
8.2.170.0070.00722.96
8.2.160.0030.01022.13
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00719.52
8.2.110.0030.00621.00
8.2.100.0060.00617.40
8.2.90.0070.00018.98
8.2.80.0030.00517.97
8.2.70.0060.00317.38
8.2.60.0000.00717.68
8.2.50.0000.00818.07
8.2.40.0030.00518.09
8.2.30.0040.00417.94
8.2.20.0080.00017.42
8.2.10.0040.00417.46
8.2.00.0040.00417.62
8.1.270.0090.00623.99
8.1.260.0040.00426.35
8.1.250.0140.00028.09
8.1.240.0100.00022.34
8.1.230.0110.00021.04
8.1.220.0000.00918.77
8.1.210.0100.00218.77
8.1.200.0000.00917.23
8.1.190.0030.00517.41
8.1.180.0000.00818.10
8.1.170.0060.00318.83
8.1.160.0000.00718.73
8.1.150.0040.00418.58
8.1.140.0000.00817.36
8.1.130.0070.00017.75
8.1.120.0040.00417.42
8.1.110.0000.00717.20
8.1.100.0040.00417.28
8.1.90.0040.00417.25
8.1.80.0030.00317.34
8.1.70.0000.00717.24
8.1.60.0120.00017.48
8.1.50.0000.00717.40
8.1.40.0080.00017.30
8.1.30.0000.00817.43
8.1.20.0030.00617.55
8.1.10.0040.00417.42
8.1.00.0030.00517.23
8.0.300.0000.00719.93
8.0.290.0040.00416.63
8.0.280.0000.00718.34
8.0.270.0000.00717.02
8.0.260.0030.00316.66
8.0.250.0040.00416.75
8.0.240.0040.00416.82
8.0.230.0070.00016.81
8.0.220.0030.00516.78
8.0.210.0050.00316.65
8.0.200.0000.00616.73
8.0.190.0070.00016.84
8.0.180.0000.00716.82
8.0.170.0080.00016.86
8.0.160.0000.00716.79
8.0.150.0040.00416.70
8.0.140.0100.00016.76
8.0.130.0000.00613.14
8.0.120.0040.00416.65
8.0.110.0040.00416.82
8.0.100.0050.00216.70
8.0.90.0040.00316.79
8.0.80.0140.00016.80
8.0.70.0040.00416.77
8.0.60.0000.00716.88
8.0.50.0040.00416.65
8.0.30.0110.00916.95
8.0.20.0100.01017.07
8.0.10.0040.00416.86
8.0.00.0110.00816.63
7.4.330.0000.00514.69
7.4.320.0000.00616.48
7.4.300.0080.00016.50
7.4.290.0030.00316.50
7.4.280.0030.00616.40
7.4.270.0030.00316.39
7.4.260.0000.00513.16
7.4.250.0040.00416.36
7.4.240.0000.00716.50
7.4.230.0000.00716.29
7.4.220.0110.00916.45
7.4.210.0070.01316.43
7.4.200.0040.00416.58
7.4.190.0040.00516.51
7.4.160.0080.00816.31
7.4.150.0140.00317.07
7.4.140.0060.01117.11
7.4.130.0090.00816.17
7.4.120.0130.00616.46
7.4.110.0130.00316.44
7.4.100.0120.00616.37
7.4.90.0140.00416.48
7.4.80.0070.01018.80
7.4.70.0050.01816.29
7.4.60.0080.00816.21
7.4.50.0050.00316.24
7.4.40.0000.01322.27
7.4.30.0090.00916.34
7.4.00.0030.01214.50
7.3.330.0070.00013.07
7.3.320.0000.00613.03
7.3.310.0000.00616.21
7.3.300.0030.00316.09
7.3.290.0060.00916.16
7.3.280.0110.00716.16
7.3.270.0080.00917.07
7.3.260.0110.00618.24
7.3.250.0080.01016.20
7.3.240.0110.01116.27
7.3.230.0040.01516.39
7.3.210.0090.00616.14
7.3.200.0130.00919.39
7.3.190.0100.01016.12
7.3.180.0170.00316.34
7.3.170.0120.00916.43
7.3.160.0120.00916.16
7.3.120.0110.00414.86
7.3.10.0170.00015.79
7.3.00.0110.01116.11
7.2.330.0100.00716.50
7.2.320.0070.01016.34
7.2.310.0130.01016.32
7.2.300.0100.00716.20
7.2.290.0070.01416.32
7.2.130.0150.01316.40
7.2.120.0070.01116.05
7.2.110.0220.00916.47
7.2.100.0170.00716.34
7.2.90.0090.00916.32
7.2.80.0180.00016.47
7.2.70.0090.00916.17
7.2.60.0060.01016.33
7.2.50.0130.00615.92
7.2.40.0100.01116.30
7.2.30.0100.01016.26
7.2.20.0090.00616.20
7.2.10.0120.00615.94
7.2.00.0140.00716.45
7.1.250.0150.00915.25
7.1.200.0080.00615.60
7.1.70.0000.00816.57
7.1.60.0100.01319.40
7.1.50.0070.01316.70
7.1.00.0030.06322.40
7.0.200.0000.00716.44
7.0.140.0030.07322.18
7.0.60.0000.05019.91
7.0.50.0000.05317.89
7.0.40.0000.05320.23
7.0.30.0300.07720.20
7.0.20.0270.03720.12
7.0.10.0070.08720.07
7.0.00.0070.04020.10
5.6.280.0070.07020.82
5.6.210.0030.07020.71
5.6.200.0200.05018.25
5.6.190.0170.07720.41
5.6.180.0370.04320.63
5.6.170.0300.08020.52
5.6.160.0030.05320.57
5.6.150.0130.05018.27
5.6.140.0030.04018.15
5.6.130.0000.04318.13
5.6.120.0070.08021.13
5.6.110.0170.07321.10
5.6.100.0100.06721.08
5.6.90.0070.08721.11
5.6.80.0030.08320.41
5.5.350.0030.08320.39
5.5.340.0130.07318.03
5.5.330.0070.06020.25
5.5.320.0370.06720.34
5.5.310.0200.06020.27
5.5.300.0100.08017.97
5.5.290.0100.05317.92
5.5.280.0030.06320.77
5.5.270.0130.07720.75
5.5.260.0100.04720.95
5.5.250.0030.06720.55
5.5.240.0100.07020.03
5.4.450.0170.05719.48
5.4.440.0030.06319.32
5.4.430.0100.05719.17
5.4.420.0170.05719.46
5.4.410.0030.08019.36
5.4.400.0070.06718.86
5.4.390.0030.06019.24
5.4.380.0000.06019.24
5.4.370.0170.03719.25
5.4.360.0100.06719.16
5.4.350.0070.07319.12
5.4.340.0000.06019.23
5.4.320.0130.04318.98
5.4.310.0000.04319.23
5.4.300.0030.06719.16
5.4.290.0170.04719.27
5.4.280.0130.05718.97
5.4.270.0130.06319.15
5.4.260.0100.07319.14
5.4.250.0070.06719.24
5.4.240.0070.07019.14
5.4.230.0070.05018.91
5.4.220.0100.07319.24
5.4.210.0000.06718.91
5.4.200.0170.02718.83
5.4.190.0130.02718.86
5.4.180.0100.05719.11
5.4.170.0200.05019.09
5.4.160.0030.04718.83
5.4.150.0100.06718.90
5.4.140.0100.04016.41
5.4.130.0030.07316.38
5.4.120.0070.04016.34
5.4.110.0030.04716.30
5.4.100.0070.05716.52
5.4.90.0170.05316.46
5.4.80.0070.07016.38
5.4.70.0070.07016.39
5.4.60.0070.04316.25
5.4.50.0100.07016.34
5.4.40.0070.05016.25
5.4.30.0130.03016.51
5.4.20.0100.03316.36
5.4.10.0030.03716.25
5.4.00.0000.04015.93
5.3.290.0200.02314.69
5.3.280.0030.05314.64
5.3.270.0030.06714.49
5.3.260.0000.04314.75
5.3.250.0100.05714.60
5.3.240.0000.06014.66
5.3.230.0100.06714.48
5.3.220.0070.07714.50
5.3.210.0100.07014.57
5.3.200.0070.07014.61
5.3.190.0170.03714.48
5.3.180.0100.07014.57
5.3.170.0130.06714.64
5.3.160.0030.05314.57
5.3.150.0100.04714.48
5.3.140.0070.07314.56
5.3.130.0030.04314.43
5.3.120.0030.06314.55
5.3.110.0030.03714.54
5.3.100.0070.04313.93
5.3.90.0000.04314.03
5.3.80.0070.03313.94
5.3.70.0070.03314.09
5.3.60.0100.03313.95
5.3.50.0000.04013.94
5.3.40.0100.03013.86
5.3.30.0030.04013.98
5.3.20.0030.03313.63
5.3.10.0030.03313.66
5.3.00.0030.03313.63
5.2.170.0070.02711.14
5.2.160.0000.03011.15
5.2.150.0030.02711.14
5.2.140.0000.03011.10
5.2.130.0000.03311.11
5.2.120.0030.02711.10
5.2.110.0030.02711.11
5.2.100.0000.03010.99
5.2.90.0070.02311.10
5.2.80.0030.03011.02
5.2.70.0030.03711.25
5.2.60.0000.03010.99
5.2.50.0000.03011.00
5.2.40.0000.03011.04
5.2.30.0070.02310.86
5.2.20.0000.03010.84
5.2.10.0000.03310.93
5.2.00.0030.02710.71
5.1.60.0000.02710.04
5.1.50.0000.0279.90
5.1.40.0000.02710.05
5.1.30.0030.02310.39
5.1.20.0000.02710.36
5.1.10.0030.0279.97
5.1.00.0000.02710.13
5.0.50.0030.0178.62
5.0.40.0030.0178.62
5.0.30.0000.0308.62
5.0.20.0030.0178.62
5.0.10.0030.0208.62
5.0.00.0000.0338.62
4.4.90.0000.0178.62
4.4.80.0000.0178.62
4.4.70.0030.0138.62
4.4.60.0000.0178.62
4.4.50.0000.0178.62
4.4.40.0000.0238.62
4.4.30.0000.0178.62
4.4.20.0030.0138.62
4.4.10.0000.0178.62
4.4.00.0030.0208.62
4.3.110.0000.0138.62
4.3.100.0030.0108.62
4.3.90.0030.0108.62
4.3.80.0000.0238.62
4.3.70.0000.0138.62
4.3.60.0030.0138.62
4.3.50.0030.0138.62
4.3.40.0030.0238.62
4.3.30.0000.0138.62
4.3.20.0000.0138.62
4.3.10.0070.0108.62
4.3.00.0000.0138.62

preferences:
44.56 ms | 400 KiB | 5 Q