3v4l.org

run code in 300+ PHP versions simultaneously
<?php $last_partition = new DateTime((1452812400000000 / 1000000) - 1); $required_partition = new DateTime(); $required_partition->modify('+10 day'); $interval = date_diff($required_partition, $last_partition); $num_partitions = $interval->format('%a'); echo $num_partitions;

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.0090.00616.75
8.3.50.0070.01122.00
8.3.40.0150.00718.96
8.3.30.0110.00318.58
8.3.20.0040.00420.29
8.3.10.0070.01123.45
8.3.00.0040.00423.53
8.2.180.0150.00318.29
8.2.170.0120.00322.96
8.2.160.0070.00720.58
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00421.05
8.2.120.0040.00426.35
8.2.110.0030.00719.27
8.2.100.0080.00317.80
8.2.90.0000.00719.23
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0000.00818.09
8.2.40.0020.00520.55
8.2.30.0000.00719.35
8.2.20.0040.00417.72
8.2.10.0040.00417.96
8.2.00.0040.00417.94
8.1.280.0110.00425.92
8.1.270.0060.01222.24
8.1.260.0000.00828.09
8.1.250.0000.00728.09
8.1.240.0060.00322.47
8.1.230.0030.00717.83
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0100.00017.35
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0050.00318.71
8.1.160.0000.00820.52
8.1.150.0000.00818.68
8.1.140.0030.00519.46
8.1.130.0070.00017.46
8.1.120.0030.00317.51
8.1.110.0070.00017.38
8.1.100.0040.00417.46
8.1.90.0040.00417.50
8.1.80.0070.00017.52
8.1.70.0030.00317.37
8.1.60.0000.00817.48
8.1.50.0080.00017.60
8.1.40.0030.00517.45
8.1.30.0050.00317.73
8.1.20.0040.00417.66
8.1.10.0000.00817.46
8.1.00.0070.00017.41
8.0.300.0080.00018.77
8.0.290.0070.00016.75
8.0.280.0070.00018.35
8.0.270.0030.00517.33
8.0.260.0070.00017.11
8.0.250.0000.00717.15
8.0.240.0000.00717.09
8.0.230.0030.00317.09
8.0.220.0070.00016.89
8.0.210.0030.00317.05
8.0.200.0040.00416.94
8.0.190.0000.00816.98
8.0.180.0000.00717.05
8.0.170.0070.00016.93
8.0.160.0050.00317.06
8.0.150.0050.00216.88
8.0.140.0040.00416.86
8.0.130.0030.00313.47
8.0.120.0040.00416.97
8.0.110.0000.00817.07
8.0.100.0040.00416.84
8.0.90.0040.00417.05
8.0.80.0040.01216.96
8.0.70.0020.00517.09
8.0.60.0000.00716.94
8.0.50.0000.00817.05
8.0.30.0050.01517.13
8.0.20.0120.00817.40
8.0.10.0000.00717.00
8.0.00.0100.00916.75
7.4.330.0050.00016.84
7.4.320.0030.00316.39
7.4.300.0030.00316.48
7.4.290.0030.00316.53
7.4.280.0040.00416.51
7.4.270.0000.00716.57
7.4.260.0070.00016.63
7.4.250.0040.00416.57
7.4.240.0000.00816.61
7.4.230.0070.00016.63
7.4.220.0080.01216.55
7.4.210.0090.00916.67
7.4.200.0030.00316.42
7.4.160.0120.00916.68
7.4.150.0150.00317.40
7.4.140.0040.01617.86
7.4.130.0100.00916.51
7.4.120.0070.01016.63
7.4.110.0060.01516.58
7.4.100.0060.01216.59
7.4.90.0090.00916.40
7.4.80.0130.00319.39
7.4.70.0060.01016.45
7.4.60.0100.00616.56
7.4.50.0120.00216.72
7.4.40.0030.01316.64
7.4.30.0150.00316.81
7.4.00.0080.00414.63
7.3.330.0040.00213.23
7.3.320.0000.00513.13
7.3.310.0000.00616.19
7.3.300.0000.00716.21
7.3.290.0060.01016.34
7.3.280.0060.01316.37
7.3.270.0110.00717.40
7.3.260.0120.00916.48
7.3.250.0120.00516.53
7.3.240.0130.00616.46
7.3.230.0120.00416.39
7.3.210.0100.00716.55
7.3.200.0030.01319.39
7.3.190.0290.02316.47
7.3.180.0070.01016.45
7.3.170.0160.00716.36
7.3.160.0060.01016.60
7.3.120.0060.00915.04
7.3.110.0000.01814.93
7.3.100.0030.01014.99
7.3.90.0040.01114.98
7.3.80.0030.01015.13
7.3.70.0070.00414.66
7.3.60.0100.00714.86
7.3.50.0070.01014.83
7.3.40.0060.00914.84
7.3.30.0070.00714.74
7.3.20.0000.01116.70
7.3.10.0060.00616.77
7.3.00.0040.01216.73
7.2.330.0080.01516.46
7.2.320.0120.00616.67
7.2.310.0110.00716.71
7.2.300.0030.01316.34
7.2.290.0130.01016.35
7.2.240.0030.01315.10
7.2.230.0040.01215.07
7.2.220.0000.00914.92
7.2.210.0090.00615.23
7.2.200.0030.01315.02
7.2.190.0070.00714.97
7.2.180.0030.01014.91
7.2.170.0080.00415.09
7.2.160.0030.01015.04
7.2.150.0070.00716.67
7.2.140.0070.00716.68
7.2.130.0040.00716.64
7.2.120.0090.00616.76
7.2.110.0000.01116.76
7.2.100.0000.01416.94
7.2.90.0060.01016.68
7.2.80.0040.01116.85
7.2.70.0080.00316.74
7.2.60.0030.01216.83
7.2.50.0030.00616.73
7.2.40.0090.00917.00
7.2.30.0070.00716.75
7.2.20.0120.00316.91
7.2.10.0070.00416.63
7.2.00.0080.00718.06
7.1.330.0100.00315.80
7.1.320.0080.00315.68
7.1.310.0030.01015.91
7.1.300.0070.00715.58
7.1.290.0070.00715.90
7.1.280.0000.01515.61
7.1.270.0070.00715.55
7.1.260.0030.00715.84
7.1.250.0040.00415.54
7.1.200.0000.01015.78
7.1.100.0000.01118.28
7.1.70.0090.00017.13
7.1.60.0070.01719.28
7.1.50.0040.00716.63
7.1.00.0070.07022.40
7.0.200.0040.00416.48
7.0.60.0030.08721.77
7.0.50.0030.04317.83
7.0.40.0100.05020.40
7.0.30.0330.07020.13
7.0.20.0370.06320.00
7.0.10.0070.08320.18
7.0.00.0030.05320.09
5.6.280.0030.04321.02
5.6.210.0000.05320.69
5.6.200.0100.08018.27
5.6.190.0170.06720.55
5.6.180.0170.04020.41
5.6.170.0270.03320.44
5.6.160.0130.05720.43
5.6.150.0070.07718.19
5.6.140.0030.06018.24
5.6.130.0070.04718.29
5.6.120.0030.04021.10
5.6.110.0030.08721.01
5.6.100.0070.08721.10
5.6.90.0030.06721.11
5.6.80.0100.06720.38
5.5.350.3330.04020.44
5.5.340.0070.05718.01
5.5.330.0070.05720.13
5.5.320.0270.04720.19
5.5.310.0430.07320.36
5.5.300.0000.06717.97
5.5.290.0030.06318.10
5.5.280.0070.04020.85
5.5.270.0130.04720.88
5.5.260.0030.08720.79
5.5.250.0130.06020.66
5.5.240.0130.04320.36

preferences:
43.14 ms | 401 KiB | 5 Q