3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Los_Angeles'); $firstOctober = new \DateTime('2016-10-01 00:00:00'); $endOctober = new \DateTime('2016-10-31 00:00:00'); var_dump( $firstOctober->diff($endOctober)->m ); 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.0070.01018.43
8.3.50.0110.00416.67
8.3.40.0070.01018.88
8.3.30.0110.00318.94
8.3.20.0040.00419.18
8.3.10.0080.00021.69
8.3.00.0040.00421.93
8.2.180.0090.00916.75
8.2.170.0120.00622.96
8.2.160.0070.00720.37
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00020.97
8.2.110.0070.00320.92
8.2.100.0060.00617.91
8.2.90.0040.00417.97
8.2.80.0000.00819.09
8.2.70.0030.00717.75
8.2.60.0080.00017.88
8.2.50.0000.00818.07
8.2.40.0040.00420.07
8.2.30.0050.00318.10
8.2.20.0070.00018.20
8.2.10.0060.00318.28
8.2.00.0000.00819.45
8.1.280.0150.00325.92
8.1.270.0080.00022.14
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0060.00322.20
8.1.230.0070.00422.11
8.1.220.0000.00817.79
8.1.210.0080.00018.77
8.1.200.0040.00417.47
8.1.190.0040.00417.35
8.1.180.0040.00419.26
8.1.170.0050.00318.66
8.1.160.0020.00519.00
8.1.150.0050.00318.86
8.1.140.0040.00422.09
8.1.130.0040.00419.43
8.1.120.0040.00417.72
8.1.110.0030.00617.59
8.1.100.0000.00717.57
8.1.90.0000.00817.54
8.1.80.0000.00817.56
8.1.70.0000.00817.71
8.1.60.0000.00817.75
8.1.50.0020.00517.70
8.1.40.0060.00317.57
8.1.30.0050.00317.66
8.1.20.0000.00717.80
8.1.10.0040.00417.68
8.1.00.0000.00817.74
8.0.300.0070.00319.95
8.0.290.0040.00417.00
8.0.280.0030.00318.47
8.0.270.0040.00417.27
8.0.260.0030.00517.05
8.0.250.0030.00317.20
8.0.240.0000.00717.15
8.0.230.0000.00817.09
8.0.220.0000.00717.13
8.0.210.0070.00017.13
8.0.200.0000.00617.14
8.0.190.0000.00717.13
8.0.180.0060.00317.16
8.0.170.0080.00317.13
8.0.160.0000.00817.11
8.0.150.0070.00017.05
8.0.140.0050.00317.00
8.0.130.0000.00613.50
8.0.120.0000.00917.14
8.0.110.0080.00017.11
8.0.100.0040.00417.21
8.0.90.0040.00417.18
8.0.80.0130.00617.08
8.0.70.0070.00017.05
8.0.60.0040.00417.18
8.0.50.0080.00017.14
8.0.30.0190.00017.11
8.0.20.0090.01017.46
8.0.10.0040.00417.23
8.0.00.0090.00916.83
7.4.330.0050.00016.59
7.4.320.0030.00316.68
7.4.300.0060.00016.84
7.4.290.0030.00316.73
7.4.280.0060.00316.73
7.4.270.0070.00016.73
7.4.260.0040.00416.83
7.4.250.0030.00416.78
7.4.240.0040.00416.84
7.4.230.0040.00416.66
7.4.220.0040.00416.68
7.4.210.0100.00416.80
7.4.200.0050.00216.82
7.4.160.0100.00916.77
7.4.140.0090.00917.86
7.4.130.0070.01016.85
7.4.120.0100.00816.75
7.4.110.0110.00716.78
7.4.100.0070.01016.84
7.4.90.0120.00616.77
7.4.80.0100.00619.39
7.4.70.0090.01216.65
7.4.60.0100.00716.73
7.4.50.0030.01416.79
7.4.40.0030.01316.67
7.4.00.0080.00615.06
7.3.330.0000.00513.35
7.3.320.0000.00613.27
7.3.310.0070.00016.33
7.3.300.0000.00716.33
7.3.290.0000.00816.35
7.3.280.0100.00716.27
7.3.260.0060.01216.65
7.3.240.0090.01016.56
7.3.230.0160.00416.57
7.3.210.0060.01216.57
7.3.200.0180.00016.56
7.3.190.0100.00716.74
7.3.180.0130.00316.81
7.3.170.0090.01316.36
7.3.160.0080.00816.57
7.2.330.0110.00516.52
7.2.320.0130.01016.88
7.2.310.0100.01116.63
7.2.300.0040.01316.55
7.2.290.0090.00916.50
7.2.120.1710.00314.80
7.2.110.2320.01014.95
7.2.100.2670.00714.88
7.2.90.2560.01014.78
7.2.80.1740.00314.72
7.2.70.1980.01315.07
7.2.60.1730.01014.93
7.2.50.2400.00815.04
7.2.40.2610.00514.85
7.2.30.1960.01415.20
7.2.20.3130.00715.00
7.2.10.0850.00714.96
7.2.00.2240.01015.04
7.1.240.1050.00614.07
7.1.230.0940.01013.96
7.1.220.3170.01513.97
7.1.210.1960.01014.02
7.1.200.1200.01314.09
7.1.190.2230.01314.15
7.1.180.1550.01313.79
7.1.170.2820.01313.94
7.1.160.0850.01013.92
7.1.150.1600.01013.96
7.1.140.0570.01213.61
7.1.130.1970.00713.84
7.1.120.2020.00313.78
7.1.110.2770.00314.06
7.1.100.2390.01014.04
7.1.90.2680.00614.17
7.1.80.2380.00714.29
7.1.70.1340.00713.98
7.1.60.1510.00613.70
7.1.50.2050.00713.96
7.1.40.0740.00713.72
7.1.30.0720.01314.02
7.1.20.2620.00313.88
7.1.10.2070.00714.11
7.1.00.1750.00713.82
5.6.380.0030.01914.20

preferences:
58.02 ms | 401 KiB | 5 Q