3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime( '2016-08-30' ); echo $date->format( 'Y-m-d' ), "\n"; $date->modify( 'last day of 6 month' ); echo $date->format( 'Y-m-d' ), "\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.0070.01417.53
8.4.10.0110.00619.33
8.3.150.0110.00720.60
8.3.140.0030.00517.04
8.3.130.0080.00018.54
8.3.120.0090.00018.95
8.3.110.0150.00320.94
8.3.100.0080.00824.06
8.3.90.0030.00726.77
8.3.80.0030.00616.88
8.3.70.0090.00616.58
8.3.60.0150.00316.75
8.3.50.0110.00721.94
8.3.40.0110.00418.76
8.3.30.0120.00318.65
8.3.20.0000.00819.10
8.3.10.0040.00421.69
8.3.00.0000.00822.45
8.2.260.0120.00319.07
8.2.250.0140.00716.89
8.2.240.0030.00617.32
8.2.230.0000.00822.58
8.2.220.0000.00837.54
8.2.210.0080.00026.77
8.2.200.0030.00716.75
8.2.190.0070.01416.58
8.2.180.0070.00725.92
8.2.170.0140.00719.21
8.2.160.0140.00022.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0070.00022.25
8.2.120.0000.00726.35
8.2.110.0070.00319.26
8.2.100.0060.00617.91
8.2.90.0060.00317.97
8.2.80.0030.00618.34
8.2.70.0080.00017.63
8.2.60.0040.00417.75
8.2.50.0040.00417.63
8.2.40.0080.00019.45
8.2.30.0080.00019.27
8.2.20.0050.00217.99
8.2.10.0050.00218.04
8.2.00.0000.00917.95
8.1.310.0070.00717.05
8.1.300.0040.00418.02
8.1.290.0090.00018.88
8.1.280.0070.01525.92
8.1.270.0110.00724.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00922.72
8.1.230.0110.00021.02
8.1.220.0050.00517.74
8.1.210.0040.00418.96
8.1.200.0040.00417.48
8.1.190.0090.00017.48
8.1.180.0040.00418.10
8.1.170.0030.00617.77
8.1.160.0070.00022.26
8.1.150.0040.00418.82
8.1.140.0070.00019.55
8.1.130.0050.00217.75
8.1.120.0000.00817.54
8.1.110.0040.00417.68
8.1.100.0040.00417.63
8.1.90.0040.00417.54
8.1.80.0000.00717.58
8.1.70.0030.00317.54
8.1.60.0040.00417.70
8.1.50.0060.00317.64
8.1.40.0090.00017.66
8.1.30.0080.00017.76
8.1.20.0060.00317.67
8.1.10.0020.00517.79
8.1.00.0000.00817.68
8.0.300.0000.00720.04
8.0.290.0040.00416.88
8.0.280.0000.00718.50
8.0.270.0040.00417.08
8.0.260.0000.00617.13
8.0.250.0080.00017.22
8.0.240.0000.00617.18
8.0.230.0070.00017.16
8.0.220.0000.00716.99
8.0.210.0030.00317.08
8.0.200.0000.00617.14
8.0.190.0050.00217.15
8.0.180.0030.00616.99
8.0.170.0070.00017.15
8.0.160.0070.00017.13
8.0.150.0030.00317.05
8.0.140.0000.00917.02
8.0.130.0030.00313.42
8.0.120.0040.00416.98
8.0.110.0000.00717.12
8.0.100.0000.00717.11
8.0.90.0040.00417.16
8.0.80.0060.00916.99
8.0.70.0000.00817.15
8.0.60.0000.00716.99
8.0.50.0050.00217.15
8.0.30.0110.00917.24
8.0.20.0090.01217.40
8.0.10.0030.00517.03
8.0.00.0140.00416.82
7.4.330.0000.00715.08
7.4.320.0070.00016.73
7.4.300.0000.00616.71
7.4.290.0000.00716.70
7.4.280.0040.00416.57
7.4.270.0030.00316.66
7.4.260.0000.00716.71
7.4.250.0050.00216.55
7.4.240.0000.00816.75
7.4.230.0000.00716.73
7.4.220.0130.00916.73
7.4.210.0070.00716.59
7.4.200.0070.00016.84
7.4.160.0110.00716.58
7.4.150.0060.01217.40
7.4.140.0120.01717.86
7.4.130.0080.00916.61
7.4.120.0080.01316.62
7.4.110.0040.01416.78
7.4.100.0090.00916.67
7.4.90.0070.01116.66
7.4.80.0030.01919.39
7.4.70.0040.01316.71
7.4.60.0100.00716.82
7.4.50.0070.00716.67
7.4.40.0080.00816.46
7.4.30.0170.00016.69
7.4.00.0120.00315.21
7.3.330.0000.00613.08
7.3.320.0030.00313.16
7.3.310.0000.00816.17
7.3.300.0050.00216.20
7.3.290.0070.00716.32
7.3.280.0100.00716.30
7.3.270.0190.00317.40
7.3.260.0040.01316.59
7.3.250.0100.01016.49
7.3.240.0060.01216.61
7.3.230.0090.00916.40
7.3.210.0090.01316.50
7.3.200.0070.01016.42
7.3.190.0060.01016.44
7.3.180.0070.01416.55
7.3.170.0090.01216.40
7.3.160.0190.00616.44
7.3.120.0040.00714.90
7.3.110.0120.00014.83
7.3.100.0050.00514.95
7.3.90.0100.00715.02
7.3.80.0120.00314.89
7.3.70.0030.01214.91
7.3.60.0090.00615.04
7.3.50.0090.00615.00
7.3.40.0000.01114.79
7.3.30.0040.01414.93
7.3.20.0070.01016.78
7.3.10.0050.01016.60
7.3.00.0080.00616.68
7.2.330.0090.00916.70
7.2.320.0150.00716.95
7.2.310.0090.00917.03
7.2.300.0110.00616.86
7.2.290.0120.00616.84
7.2.240.0120.00315.33
7.2.230.0070.01015.18
7.2.220.0060.00615.28
7.2.210.0110.00415.31
7.2.200.0040.00915.29
7.2.190.0040.01115.02
7.2.180.0060.01015.07
7.2.170.0100.00714.96
7.2.160.0100.00614.79
7.2.150.0000.01517.02
7.2.140.0100.00716.72
7.2.130.0070.00717.11
7.2.120.0090.00716.96
7.2.110.0060.00917.15
7.2.100.0090.00516.95
7.2.90.0040.00717.16
7.2.80.0070.00917.13
7.2.70.0090.00716.65
7.2.60.0070.00816.94
7.2.50.0090.00617.01
7.2.40.0040.00917.01
7.2.30.0060.00917.02
7.2.20.0030.01117.00
7.2.10.0060.00616.96
7.2.00.0080.00617.09
7.1.330.0060.00915.93
7.1.320.0040.01115.89
7.1.310.0060.00915.74
7.1.300.0030.00915.69
7.1.290.0030.01415.79
7.1.280.0070.01015.61
7.1.270.0090.00315.82
7.1.260.0070.01015.70
7.1.250.0080.00615.85
7.1.200.0030.00615.78
7.1.70.0060.01016.93
7.1.60.0030.00917.04
7.1.00.0100.07022.36
7.0.200.0070.00414.94
7.0.100.0400.05319.93
7.0.90.0130.05319.93
7.0.80.0100.06019.94
7.0.70.0100.05319.90
7.0.60.0000.06319.95
7.0.50.0130.05320.32
7.0.40.4300.06720.32
7.0.30.0100.07720.35
7.0.20.0170.05020.33
7.0.10.0100.05320.20
7.0.00.0200.04720.36
5.6.250.0100.06020.83
5.6.240.0100.05720.81
5.6.230.0100.06020.80
5.6.220.0070.05720.61
5.6.210.0200.05320.70
5.6.200.0130.06721.01
5.6.190.0130.05321.07
5.6.180.0170.07021.04
5.6.170.0000.06321.06
5.6.160.0000.06721.07
5.6.150.0170.05721.07
5.6.140.0100.06321.04
5.6.130.0130.07021.05
5.6.120.0130.06321.17
5.6.110.0100.06021.14
5.6.100.0030.06321.03
5.6.90.0230.07021.06
5.6.80.0030.06320.44
5.6.70.0070.05720.41
5.6.60.0070.05720.42
5.6.50.0100.05320.38
5.6.40.0170.08320.40
5.6.30.0170.05020.53
5.6.20.0070.06020.39
5.6.10.0070.05720.48
5.6.00.0200.04320.50

preferences:
68.56 ms | 403 KiB | 5 Q