3v4l.org

run code in 300+ PHP versions simultaneously
<?php $versions = [ "3.0.1", "3.0.3", "3.0.2", "3.0.0", "2.9.4", "2.9.3", "2.9.2", "2.9.5", "2.9.1", "2.9.0", "2.8.1", "2.8.11", "2.8.10" ]; foreach ($versions as $version) { $ints = explode('.', $version, 3); $tempKey = "{$ints[0]}.{$ints[1]}"; if (!isset($result[$tempKey]) || version_compare($version, $result[$tempKey], 'gt')) { $result[$tempKey] = $version; } } var_export(array_values($result));

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.5.00.0140.01120.21
8.4.150.0020.00014.05
8.4.140.0160.01017.70
8.4.130.0130.00518.62
8.4.120.0110.00920.68
8.4.110.0120.00722.38
8.4.100.0120.00817.81
8.4.90.0060.00318.64
8.4.80.0070.00219.38
8.4.70.0080.00617.84
8.4.60.0040.00423.95
8.4.50.0100.00918.89
8.4.40.0030.01620.70
8.4.30.0060.00320.40
8.4.20.0160.00319.48
8.4.10.0050.00019.72
8.3.280.0110.00918.31
8.3.270.0120.01216.70
8.3.260.0030.00516.41
8.3.250.0090.00918.78
8.3.240.0100.00816.80
8.3.230.0100.01016.41
8.3.220.0090.00517.42
8.3.210.0150.00716.69
8.3.200.0020.00716.44
8.3.190.0040.00417.29
8.3.180.0140.00516.55
8.3.170.0060.00316.50
8.3.160.0070.01116.42
8.3.150.0080.00017.17
8.3.140.0070.00316.28
8.3.130.0090.00016.63
8.3.120.0060.00320.59
8.3.110.0080.00020.94
8.3.100.0050.00324.06
8.3.90.0080.00026.77
8.3.80.0030.00619.36
8.3.70.0040.01116.63
8.3.60.0060.01218.30
8.3.50.0130.00823.77
8.3.40.0030.01018.57
8.3.30.0090.00618.75
8.3.20.0070.00020.76
8.3.10.0040.00421.92
8.3.00.0000.00823.40
8.2.290.0090.00920.31
8.2.280.0100.00922.13
8.2.270.0130.00716.79
8.2.260.0090.00018.73
8.2.250.0050.00316.88
8.2.240.0060.00318.86
8.2.230.0080.00022.58
8.2.220.0000.00937.54
8.2.210.0120.00326.77
8.2.200.0030.00716.63
8.2.190.0150.00016.58
8.2.180.0090.00616.75
8.2.170.0120.00322.96
8.2.160.0140.00022.08
8.2.150.0000.00924.18
8.2.140.0070.00024.66
8.2.130.0050.00226.16
8.2.120.0070.00020.94
8.2.110.0040.00720.51
8.2.100.0060.00617.91
8.2.90.0030.00618.16
8.2.80.0090.00019.26
8.2.70.0060.00317.63
8.2.60.0060.00317.61
8.2.50.0080.00018.04
8.2.40.0040.00419.95
8.2.30.0040.00418.01
8.2.20.0040.00418.12
8.2.10.0060.00319.19
8.2.00.0030.00319.26
8.1.330.0050.01422.01
8.1.320.0140.00616.26
8.1.310.0000.00916.65
8.1.300.0060.00318.68
8.1.290.0000.01130.84
8.1.280.0070.01125.92
8.1.270.0040.00422.64
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00424.02
8.1.230.0090.00320.87
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0040.00417.35
8.1.180.0080.00018.86
8.1.170.0040.00417.65
8.1.160.0040.00418.77
8.1.150.0000.00719.06
8.1.140.0040.00420.72
8.1.130.0000.00820.09
8.1.120.0000.00717.43
8.1.110.0050.00317.40
8.1.100.0000.00717.51
8.1.90.0030.00517.41
8.1.80.0040.00417.36
8.1.70.0000.00717.45
8.1.60.0000.00817.61
8.1.50.0050.00217.56
8.1.40.0080.00017.47
8.1.30.0030.00617.50
8.1.20.0040.00417.63
8.1.10.0000.00817.61
8.1.00.0040.00417.55
8.0.300.0030.00521.79
8.0.290.0050.00216.63
8.0.280.0050.00318.50
8.0.270.0000.00717.93
8.0.260.0030.00320.07
8.0.250.0050.00316.84
8.0.240.0000.00716.97
8.0.230.0000.00816.98
8.0.220.0070.00016.87
8.0.210.0030.00316.91
8.0.200.0060.00016.99
8.0.190.0080.00016.93
8.0.180.0050.00316.75
8.0.170.0030.00516.84
8.0.160.0040.00416.91
8.0.150.0040.00416.91
8.0.140.0040.00416.89
8.0.130.0060.00013.32
8.0.120.0040.00416.84
8.0.110.0070.00016.79
8.0.100.0000.00716.74
8.0.90.0060.00316.75
8.0.80.0100.00716.92
8.0.70.0000.00816.98
8.0.60.0040.00416.91
8.0.50.0070.00016.84
8.0.30.0100.00617.26
8.0.20.0140.00516.84
8.0.10.0000.00717.06
8.0.00.0090.00916.70
7.4.330.0000.00516.78
7.4.320.0040.00416.46
7.4.300.0060.00016.52
7.4.290.0050.00316.64
7.4.280.0030.00516.49
7.4.270.0070.00316.60
7.4.260.0050.00013.25
7.4.250.0000.00816.46
7.4.240.0030.00516.61
7.4.230.0070.00016.59
7.4.220.0030.00316.40
7.4.210.0080.00716.59
7.4.200.0030.00316.63
7.4.130.0030.01716.64
7.4.120.0090.00916.55
7.4.110.0140.00316.61
7.4.100.0040.01516.65
7.4.90.0070.01016.58
7.4.80.0070.01019.39
7.4.70.0100.00616.46
7.4.60.0060.01016.57
7.4.50.0030.01216.27
7.4.40.0090.00616.45
7.4.10.0110.00615.01
7.4.00.0020.01515.02
7.3.330.0020.00516.30
7.3.320.0030.00313.04
7.3.310.0040.00416.30
7.3.300.0000.00716.32
7.3.290.0060.00716.37
7.3.280.0130.00616.32
7.3.260.0170.00016.50
7.3.230.0060.01216.63
7.3.210.0070.01016.54
7.3.200.0110.00616.54
7.3.190.0120.00616.36
7.3.180.0100.01016.33
7.3.170.0130.00316.39
7.3.160.0140.00716.63
7.3.130.0070.00714.76
7.3.120.0050.01314.94
7.3.110.0110.00614.96
7.3.100.0050.00914.68
7.3.90.0090.00714.90
7.3.80.0060.00814.96
7.3.70.0110.00314.76
7.3.60.0060.00914.99
7.3.50.0020.00914.98
7.3.40.0070.00514.74
7.3.30.0110.00514.83
7.3.20.0040.01115.74
7.3.10.0100.00415.65
7.3.00.0020.00915.71
7.2.330.0070.01016.47
7.2.320.0100.00616.63
7.2.310.0150.00916.75
7.2.300.0120.00616.78
7.2.290.0090.01316.75
7.2.260.0110.00715.02
7.2.250.0020.01615.24
7.2.240.0090.00915.00
7.2.230.0050.01115.05
7.2.220.0040.01014.84
7.2.210.0070.00815.10
7.2.200.0080.00614.99
7.2.190.0040.01014.96
7.2.180.0050.01014.92
7.2.170.0040.01115.06
7.2.160.0100.00314.94
7.2.150.0030.01216.11
7.2.140.0030.01116.16
7.2.130.0060.00715.90
7.2.120.0030.01015.98
7.2.110.0070.00815.98
7.2.100.0100.00815.95
7.2.90.0100.01216.11
7.2.80.0110.00615.88
7.2.70.0080.00816.06
7.2.60.0060.00916.11
7.2.50.0020.01116.13
7.2.40.0040.00916.11
7.2.30.0060.00816.15
7.2.20.0040.01016.04
7.2.10.0100.00416.03
7.2.00.0120.00415.95

preferences:
32.66 ms | 403 KiB | 5 Q