3v4l.org

run code in 300+ PHP versions simultaneously
<?php $needsVersion = '5.2'; $versions = ['5', '5.x', '5.1', '5.2', '5.2-dev', '5.2.0', '5.2.1', '5.3']; foreach ($versions as $version) { if (version_compare($version, $needsVersion, '>=')) { echo "{$version} >= $needsVersion\n"; } else { echo "{$version} < $needsVersion\n"; } }

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.4.20.0040.00417.55
8.4.10.0100.00619.23
8.3.150.0070.01318.93
8.3.140.0090.00617.05
8.3.130.0000.00918.50
8.3.120.0080.00320.67
8.3.110.0100.01016.64
8.3.100.0000.01516.66
8.3.90.0120.00326.77
8.3.80.0060.00317.97
8.3.70.0120.00316.72
8.3.60.0110.00716.38
8.3.50.0110.00818.35
8.3.40.0000.01418.59
8.3.30.0120.00918.71
8.3.20.0070.00021.73
8.3.10.0080.00021.68
8.3.00.0060.00319.38
8.2.270.0120.00816.90
8.2.260.0080.00017.24
8.2.250.0140.00718.36
8.2.240.0070.00318.74
8.2.230.0050.00520.94
8.2.220.0060.00337.54
8.2.210.0040.01126.77
8.2.200.0000.00918.29
8.2.190.0100.01016.58
8.2.180.0150.00616.38
8.2.170.0150.00022.96
8.2.160.0130.00019.29
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00020.38
8.2.120.0080.00026.35
8.2.110.0090.00021.03
8.2.100.0040.00817.72
8.2.90.0080.00019.16
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0070.00018.04
8.2.50.0040.00418.10
8.2.40.0060.00320.60
8.2.30.0000.00819.26
8.2.20.0070.00018.07
8.2.10.0080.00018.00
8.2.00.0030.00318.13
8.1.310.0070.01018.07
8.1.300.0100.00017.79
8.1.290.0090.00030.84
8.1.280.0140.00025.92
8.1.270.0090.00023.73
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0080.00023.92
8.1.230.0090.00417.82
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0090.00018.57
8.1.160.0040.00418.94
8.1.150.0000.00718.83
8.1.140.0000.00819.60
8.1.130.0070.00018.89
8.1.120.0040.00417.51
8.1.110.0000.00817.45
8.1.100.0030.00517.45
8.1.90.0030.00617.46
8.1.80.0000.00717.44
8.1.70.0080.00017.37
8.1.60.0000.00817.63
8.1.50.0030.00617.50
8.1.40.0040.00417.51
8.1.30.0040.00417.58
8.1.20.0030.00617.54
8.1.10.0040.00417.53
8.1.00.0030.00517.34
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0050.00318.44
8.0.270.0070.00016.83
8.0.260.0030.00317.18
8.0.250.0040.00416.84
8.0.240.0040.00416.87
8.0.230.0070.00016.86
8.0.220.0000.00716.91
8.0.210.0030.00616.92
8.0.200.0030.00316.98
8.0.190.0080.00016.98
8.0.180.0070.00016.87
8.0.170.0000.00716.81
8.0.160.0000.00716.89
8.0.150.0060.00516.71
8.0.140.0090.00316.74
8.0.130.0070.00013.32
8.0.120.0070.00016.79
8.0.110.0080.00016.89
8.0.100.0000.00716.72
8.0.90.0000.00716.79
8.0.80.0100.00716.91
8.0.70.0000.00716.91
8.0.60.0070.00016.92
8.0.50.0040.00416.78
8.0.30.0100.00917.11
8.0.20.0120.00717.41
8.0.10.0040.00416.98
8.0.00.0140.00716.64
7.4.330.0050.00015.55
7.4.320.0030.00316.63
7.4.300.0030.00316.61
7.4.290.0030.00316.49
7.4.280.0040.00416.51
7.4.270.0070.00016.58
7.4.260.0100.00016.43
7.4.250.0070.00016.46
7.4.240.0040.00416.62
7.4.230.0000.00716.41
7.4.220.0090.00916.59
7.4.210.0050.01316.63
7.4.200.0000.00716.32
7.4.160.0070.00916.41
7.4.150.0130.00417.40
7.4.140.0110.00617.86
7.4.130.0170.00716.49
7.4.120.0090.01016.55
7.4.110.0070.01116.48
7.4.100.0060.01316.69
7.4.90.0150.00916.62
7.4.80.0110.00719.39
7.4.70.0060.01016.43
7.4.60.0040.01216.58
7.4.50.0070.00716.33
7.4.40.0090.00616.40
7.4.30.0160.00416.33
7.4.10.0070.01115.09
7.4.00.0100.00914.89
7.3.330.0040.00413.21
7.3.320.0050.00013.20
7.3.310.0000.00716.39
7.3.300.0000.00716.34
7.3.290.0110.00616.40
7.3.280.0110.00516.34
7.3.270.0120.00617.40
7.3.260.0090.01116.48
7.3.250.0100.01016.39
7.3.240.0090.01116.31
7.3.230.0120.00616.48
7.3.210.0090.00916.48
7.3.200.0000.01616.39
7.3.190.0080.00916.18
7.3.180.0150.00616.50
7.3.170.0150.00616.26
7.3.160.0160.00016.46
7.3.130.0060.01214.71
7.3.120.0020.01514.78
7.3.110.0090.00914.96
7.3.100.0070.00714.96
7.3.90.0030.01214.74
7.3.80.0090.00614.74
7.3.70.0050.00714.70
7.3.60.0080.00314.74
7.3.50.0060.00914.87
7.3.40.0050.00714.66
7.3.30.0060.00914.88
7.3.20.0060.00616.67
7.3.10.0060.00916.65
7.3.00.0080.00816.66
7.2.330.0120.00616.33
7.2.320.0110.00716.65
7.2.310.0090.00616.55
7.2.300.0060.01116.42
7.2.290.0040.01416.67
7.2.260.0160.00315.11
7.2.250.0110.01014.91
7.2.240.0070.00914.94
7.2.230.0060.00615.12
7.2.220.0040.00914.81
7.2.210.0050.00814.97
7.2.200.0060.01014.98
7.2.190.0060.00814.73
7.2.180.0060.00714.99
7.2.170.0060.00515.07
7.2.160.0100.00315.08
7.2.150.0060.00616.90
7.2.140.0100.00616.92
7.2.130.0040.01116.67
7.2.120.0120.00316.79
7.2.110.0030.00916.77
7.2.100.0040.00816.97
7.2.90.0040.00916.55
7.2.80.0060.00616.82
7.2.70.0070.00716.99
7.2.60.0120.00316.96
7.2.50.0060.00916.70
7.2.40.0000.01416.90
7.2.30.0130.00316.92
7.2.20.0070.00716.91
7.2.10.0060.00916.96
7.2.00.0040.01116.71
7.1.330.0070.00515.86
7.1.320.0090.00515.62
7.1.310.0090.00416.02
7.1.300.0090.00515.90
7.1.290.0050.01015.79
7.1.280.0040.00815.91
7.1.270.0040.00715.73
7.1.260.0030.01115.75
7.1.250.0030.01115.83
7.1.240.0090.00615.71
7.1.230.0120.00315.73
7.1.220.0070.01015.75
7.1.210.0030.01015.70
7.1.200.0070.00315.89
7.1.190.0030.01015.75
7.1.180.0070.00715.98
7.1.170.0000.01315.86
7.1.160.0110.00315.98
7.1.150.0030.01315.76
7.1.140.0060.00615.89
7.1.130.0120.00315.83
7.1.120.0070.01115.87
7.1.110.0120.00315.89
7.1.100.0040.01116.01
7.1.90.0090.00015.88
7.1.80.0080.00615.77
7.1.70.0050.00716.41
7.1.60.0060.00816.69
7.1.50.0510.00727.32
7.1.40.0280.01324.13
7.1.30.0630.00824.03
7.1.20.0330.01224.08
7.1.10.0200.01315.09
7.1.00.0330.01215.36
7.0.330.0080.00315.52
7.0.320.0030.00615.49
7.0.310.0110.00415.57
7.0.300.0000.01515.17
7.0.290.0040.00715.55
7.0.280.0120.00315.11
7.0.270.0070.00715.45
7.0.260.0000.01415.21
7.0.250.0070.01015.50
7.0.240.0060.00315.41
7.0.230.0060.00315.66
7.0.220.0000.01515.30
7.0.210.0110.00315.17
7.0.200.0070.01116.13
7.0.190.0280.01115.12
7.0.180.0670.00814.91
7.0.170.0420.01214.85
7.0.160.0420.01314.93
7.0.150.0250.00714.76
7.0.140.0270.00314.90
7.0.130.0230.01314.86
7.0.120.0260.00715.02
7.0.110.0230.00814.73
7.0.100.0220.01014.77
7.0.90.0250.00714.76
7.0.80.0230.00714.92
7.0.70.0300.01014.94
7.0.60.0220.00714.78
7.0.50.0230.00714.77
7.0.40.0200.01014.04
7.0.30.0260.00513.94
7.0.20.0200.00814.03
7.0.10.0240.00514.12
7.0.00.0180.01213.94
5.6.400.0060.01214.52
5.6.390.0060.00614.02
5.6.380.0030.00914.44
5.6.370.0040.00814.31
5.6.360.0080.00814.31
5.6.350.0040.01114.25
5.6.340.0070.00314.51
5.6.330.0120.00314.62
5.6.320.0070.01014.60
5.6.310.0030.01314.43
5.6.300.0030.00714.58
5.6.290.0040.00914.64
5.6.280.0100.00614.04
5.6.270.0070.00714.42
5.6.260.0110.00014.13
5.6.250.0030.01114.45
5.6.240.0130.00014.32
5.6.230.0040.00814.16
5.6.220.0030.01014.18
5.6.210.0070.00714.35
5.6.200.0070.00714.40
5.6.190.0100.00314.39
5.6.180.0030.01414.05
5.6.170.0000.00814.24
5.6.160.0060.00614.52
5.6.150.0070.00714.47
5.6.140.0080.00614.44
5.6.130.0030.01014.19
5.6.120.0000.00914.25
5.6.110.0100.00014.26
5.6.100.0040.01114.12
5.6.90.0030.00714.29
5.6.80.0030.00914.29
5.6.70.0000.01414.14
5.6.60.0100.00314.02
5.6.50.0000.01214.09
5.6.40.0060.00614.14
5.6.30.0040.00814.29
5.6.20.0070.00314.14
5.6.10.0040.00414.09
5.6.00.0060.00614.38

preferences:
28.08 ms | 403 KiB | 5 Q