3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Paris'); $firstOctober = new \DateTime('2016-10-01 00:00:00'); $endOctober = new \DateTime('2016-10-31 00:00:00'); var_dump( $firstOctober->diff($endOctober)->m );

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.0120.00418.43
8.3.50.0090.00616.68
8.3.40.0120.00318.98
8.3.30.0120.00318.71
8.3.20.0040.00421.09
8.3.10.0030.00621.87
8.3.00.0030.00521.82
8.2.180.0100.01016.60
8.2.170.0160.00622.96
8.2.160.0100.00320.38
8.2.150.0050.00224.18
8.2.140.0070.00024.66
8.2.130.0070.00020.70
8.2.120.0070.00026.35
8.2.110.0030.00619.45
8.2.100.0000.01119.70
8.2.90.0000.01019.16
8.2.80.0030.00617.97
8.2.70.0040.00417.63
8.2.60.0000.00817.63
8.2.50.0000.00818.10
8.2.40.0060.00319.34
8.2.30.0000.00719.30
8.2.20.0060.00318.03
8.2.10.0040.00418.00
8.2.00.0030.00519.30
8.1.280.0090.00925.92
8.1.270.0040.00422.14
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00621.44
8.1.230.0000.01119.04
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0080.00017.30
8.1.180.0030.00518.10
8.1.170.0080.00018.59
8.1.160.0040.00418.73
8.1.150.0000.00718.85
8.1.140.0000.00722.05
8.1.130.0000.00717.51
8.1.120.0070.00017.63
8.1.110.0090.00017.64
8.1.100.0000.00817.56
8.1.90.0000.00717.60
8.1.80.0040.00417.61
8.1.70.0070.00017.58
8.1.60.0030.00617.68
8.1.50.0000.00717.54
8.1.40.0000.00817.53
8.1.30.0000.00817.72
8.1.20.0070.00017.63
8.1.10.0040.00417.68
8.1.00.0040.00417.56
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0040.00418.50
8.0.270.0000.00717.34
8.0.260.0040.00417.00
8.0.250.0030.00317.04
8.0.240.0000.00717.03
8.0.230.0030.00617.16
8.0.220.0070.00016.99
8.0.210.0000.00716.93
8.0.200.0000.00717.04
8.0.190.0000.00817.10
8.0.180.0080.00016.94
8.0.170.0000.00916.94
8.0.160.0060.00316.93
8.0.150.0000.00717.02
8.0.140.0000.00817.00
8.0.130.0000.00513.45
8.0.120.0030.00517.05
8.0.110.0050.00317.05
8.0.100.0040.00417.21
8.0.90.0000.00817.04
8.0.80.0100.00916.97
8.0.70.0050.00216.97
8.0.60.0040.00417.10
8.0.50.0070.00016.90
8.0.30.0120.01017.20
8.0.20.0110.00817.40
8.0.10.0040.00417.14
8.0.00.0080.01216.90
7.4.330.0050.00016.75
7.4.320.0000.00716.75
7.4.300.0030.00316.55
7.4.290.0000.00716.74
7.4.280.0050.00316.77
7.4.270.0000.00616.64
7.4.260.0070.00016.55
7.4.250.0000.00816.54
7.4.240.0040.00416.61
7.4.230.0030.00316.48
7.4.220.0000.00716.80
7.4.210.0130.00316.77
7.4.200.0070.00016.67
7.4.160.0060.01116.63
7.4.140.0090.00917.86
7.4.130.0130.00316.55
7.4.120.0150.00616.65
7.4.110.0120.01216.46
7.4.100.0070.01716.63
7.4.90.0060.01016.57
7.4.80.0030.02019.39
7.4.70.0060.01016.75
7.4.60.0100.00616.64
7.4.50.0030.01216.70
7.4.40.0080.00816.74
7.4.00.0110.00315.32
7.3.330.0060.00013.04
7.3.320.0060.00013.13
7.3.310.0030.00316.35
7.3.300.0000.00716.31
7.3.290.0000.00716.27
7.3.280.0070.00816.26
7.3.260.0090.00916.51
7.3.240.0070.01116.53
7.3.230.0100.00716.35
7.3.210.0090.01216.57
7.3.200.0060.01116.50
7.3.190.0150.00316.38
7.3.180.0130.00316.43
7.3.170.0160.00416.31
7.3.160.0100.00616.50
7.3.120.0090.00615.06
7.3.110.0100.00314.61
7.3.100.0030.01214.80
7.3.90.0070.00714.93
7.3.80.0030.01414.98
7.3.70.0070.00714.89
7.3.60.0060.00614.79
7.3.50.0040.01114.83
7.3.40.0060.01014.62
7.3.30.0000.01414.64
7.3.20.0140.00016.63
7.3.10.0170.00915.60
7.3.00.0000.01216.61
7.2.330.0100.00716.92
7.2.320.0260.02316.70
7.2.310.0150.00316.79
7.2.300.0060.01016.50
7.2.290.0110.00816.76
7.2.240.0030.01315.11
7.2.230.0040.00915.14
7.2.220.0060.00614.73
7.2.210.0070.00715.20
7.2.200.0040.01115.09
7.2.190.0100.00714.76
7.2.180.0030.00715.09
7.2.170.0030.01215.07
7.2.160.0030.01015.17
7.2.150.0030.01016.56
7.2.140.0040.01216.69
7.2.130.0090.00616.95
7.2.120.0980.00915.33
7.2.110.1060.01015.42
7.2.100.0750.01115.29
7.2.90.0830.00815.48
7.2.80.0860.00915.31
7.2.70.0580.00715.53
7.2.60.0570.00915.57
7.2.50.0450.00915.68
7.2.40.0610.00815.50
7.2.30.0910.00915.58
7.2.20.0210.00615.64
7.2.10.0280.00915.62
7.2.00.0170.00615.64
7.1.330.0060.00915.89
7.1.320.0100.00615.81
7.1.310.0030.00715.73
7.1.300.0060.00615.82
7.1.290.0030.01015.93
7.1.280.0070.01016.01
7.1.270.0070.00415.78
7.1.260.0040.01115.91
7.1.250.0030.00715.87
7.1.240.1470.01214.03
7.1.230.0860.00513.89
7.1.220.1270.00913.68
7.1.210.1350.00713.90
7.1.200.1340.00813.72
7.1.190.0950.00813.86
7.1.180.0760.00813.77
7.1.170.1110.00314.00
7.1.160.1390.00913.84
7.1.150.1470.00513.72
7.1.140.0340.01013.85
7.1.130.0520.00913.82
7.1.120.0220.00913.79
7.1.110.0510.00613.93
7.1.100.0240.00713.89
7.1.90.0850.00413.89
7.1.80.0710.00513.83
7.1.70.0300.00713.79
7.1.60.0280.00713.80
7.1.50.0690.00513.95
7.1.40.0490.00813.83
7.1.30.0240.01113.78
7.1.20.0270.00613.79
7.1.10.0630.00913.66
7.1.00.1380.00813.76
5.6.380.0100.00914.21

preferences:
58.27 ms | 401 KiB | 5 Q