3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('UTC'); $date1 = new DateTime('2015-01-01T12:00:00'); $date2 = new DateTime('2015-01-01T12:01:00'); var_dump($date1 < $date2); $date1->setTimezone(new DateTimeZone('UTC')); $date2->setTimezone(new DateTimeZone('EST')); var_dump($date1 < $date2); $date1->getTimestamp(); $date2->getTimestamp(); var_dump($date1 < $date2);

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.0030.01717.88
8.4.10.0030.00617.88
8.3.150.0070.01318.82
8.3.140.0110.00720.84
8.3.130.0040.00418.59
8.3.120.0160.00320.91
8.3.110.0080.00020.94
8.3.100.0090.00024.06
8.3.90.0080.00026.77
8.3.80.0090.00018.30
8.3.70.0130.01016.75
8.3.60.0060.01218.29
8.3.50.0100.00722.11
8.3.40.0110.00418.57
8.3.30.0040.01118.67
8.3.20.0080.00019.22
8.3.10.0050.00221.81
8.3.00.0070.00021.02
8.2.260.0000.00817.30
8.2.250.0040.00416.48
8.2.240.0060.00317.07
8.2.230.0060.00922.58
8.2.220.0070.00337.54
8.2.210.0080.00026.77
8.2.200.0030.00617.00
8.2.190.0100.01016.89
8.2.180.0140.00018.17
8.2.170.0060.00922.96
8.2.160.0160.00619.22
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00420.47
8.2.120.0080.00026.35
8.2.110.0030.00620.52
8.2.100.0040.00717.91
8.2.90.0040.00418.09
8.2.80.0040.00418.22
8.2.70.0080.00017.75
8.2.60.0040.00417.63
8.2.50.0000.00817.61
8.2.40.0000.00819.47
8.2.30.0100.00019.20
8.2.20.0040.00417.70
8.2.10.0030.00618.07
8.2.00.0000.00818.14
8.1.310.0000.00816.80
8.1.300.0030.00617.95
8.1.290.0060.00330.84
8.1.280.0150.00325.92
8.1.270.0080.00023.72
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00619.32
8.1.230.0080.00420.93
8.1.220.0000.00817.74
8.1.210.0000.01018.77
8.1.200.0050.00317.36
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0000.00718.96
8.1.160.0030.00518.95
8.1.150.0040.00418.75
8.1.140.0080.00019.64
8.1.130.0000.00717.65
8.1.120.0000.00817.52
8.1.110.0000.00717.51
8.1.100.0040.00417.66
8.1.90.0000.01017.61
8.1.80.0000.00817.55
8.1.70.0070.00017.47
8.1.60.0030.00517.68
8.1.50.0060.00317.59
8.1.40.0030.00517.57
8.1.30.0000.00917.59
8.1.20.0040.00417.68
8.1.10.0040.00417.54
8.1.00.0000.00717.46
8.0.300.0000.00720.02
8.0.290.0070.00016.75
8.0.280.0040.00418.43
8.0.270.0040.00417.13
8.0.260.0050.00317.25
8.0.250.0040.00417.07
8.0.240.0070.00017.04
8.0.230.0060.00317.15
8.0.220.0070.00016.98
8.0.210.0080.00017.02
8.0.200.0000.00616.96
8.0.190.0030.00617.02
8.0.180.0000.00917.04
8.0.170.0040.00417.10
8.0.160.0030.00316.94
8.0.150.0030.00316.95
8.0.140.0000.00717.02
8.0.130.0040.00513.48
8.0.120.0000.00816.96
8.0.110.0070.00016.95
8.0.100.0000.00817.00
8.0.90.0030.00516.88
8.0.80.0070.00717.04
8.0.70.0000.00817.06
8.0.60.0050.00316.98
8.0.50.0070.00016.92
8.0.30.0080.01217.29
8.0.20.0070.01317.40
8.0.10.0040.00416.96
8.0.00.0090.00916.96
7.4.330.0020.00215.12
7.4.320.0040.00416.60
7.4.300.0060.00016.50
7.4.290.0030.00316.52
7.4.280.0000.00716.57
7.4.270.0030.00316.68
7.4.260.0070.00016.64
7.4.250.0040.00416.66
7.4.240.0070.00016.68
7.4.230.0040.00416.71
7.4.220.0100.01016.68
7.4.210.0090.00616.79
7.4.200.0040.00416.52
7.4.160.0110.00916.47
7.4.150.0150.00717.40
7.4.140.0100.00617.86
7.4.130.0130.00816.63
7.4.120.0080.00916.71
7.4.110.0100.00716.57
7.4.100.0110.00716.61
7.4.90.0090.00916.68
7.4.80.0150.00619.39
7.4.70.0110.00616.60
7.4.60.0060.02016.65
7.4.50.0100.00516.60
7.4.40.0090.00816.49
7.4.30.0100.01416.75
7.4.00.0060.01215.10
7.3.330.0000.00513.10
7.3.320.0020.00213.09
7.3.310.0030.00616.49
7.3.300.0030.00316.34
7.3.290.0090.00816.36
7.3.280.0080.00916.35
7.3.270.0070.01017.40
7.3.260.0130.00516.53
7.3.250.0090.00916.48
7.3.240.0090.00816.51
7.3.230.0060.01216.39
7.3.210.0110.00716.38
7.3.200.0130.01016.35
7.3.190.0100.00616.37
7.3.180.0120.00616.63
7.3.170.0060.01716.33
7.3.160.0070.01016.40
7.3.120.0100.00715.00
7.3.110.0100.00714.95
7.3.100.0070.00814.78
7.3.90.0050.00714.99
7.3.80.0020.01115.04
7.3.70.0050.00815.00
7.3.60.0070.00614.54
7.3.50.0070.00814.85
7.3.40.0060.00714.87
7.3.30.0070.00714.87
7.3.20.0060.01116.64
7.3.10.0020.01316.61
7.3.00.0070.00716.57
7.2.330.0000.01716.58
7.2.320.0110.01216.66
7.2.310.0120.01216.70
7.2.300.0170.00016.49
7.2.290.0100.00716.73
7.2.250.0070.01115.10
7.2.240.0030.01314.86
7.2.230.0040.01115.04
7.2.220.0060.00814.91
7.2.210.0040.01215.12
7.2.200.0040.01015.17
7.2.190.0040.00814.91
7.2.180.0010.01014.97
7.2.170.0080.00714.90
7.2.160.0070.01115.04
7.2.150.0060.00616.82
7.2.140.0100.00316.90
7.2.130.0060.00916.70
7.2.120.0100.00816.68
7.2.110.0070.00816.65
7.2.100.0060.00916.74
7.2.90.0140.00516.73
7.2.80.0030.00916.59
7.2.70.0080.00816.86
7.2.60.0110.00516.71
7.2.50.0100.00716.78
7.2.40.0090.00516.82
7.2.30.0070.00916.79
7.2.20.0120.00516.82
7.2.10.0110.00616.75
7.2.00.0060.00717.53
7.1.330.0070.00715.71
7.1.320.0080.01015.85
7.1.310.0080.00315.72
7.1.300.0040.00915.79
7.1.290.0050.00715.66
7.1.280.0060.00915.79
7.1.270.0020.01315.65
7.1.260.0060.00815.82
7.1.250.0030.00715.82
7.1.240.0090.00915.94
7.1.230.0150.00315.88
7.1.220.0150.00415.78
7.1.210.0130.00515.88
7.1.200.0080.00715.96
7.1.190.0110.00415.85
7.1.180.0090.00615.68
7.1.170.0100.00715.68
7.1.160.0130.00015.63
7.1.150.0040.01315.68
7.1.140.0140.00515.82
7.1.130.0070.01015.74
7.1.120.0090.00615.85
7.1.110.0110.00715.88
7.1.100.0060.00717.01
7.1.90.0090.00615.84
7.1.80.0050.01015.70
7.1.70.0080.00416.53
7.1.60.0140.00617.55
7.1.50.0100.01216.24
7.1.40.0070.00315.93
7.1.30.0140.00215.52
7.1.20.0110.00615.79
7.1.10.0060.00715.64
7.1.00.0070.04119.12
7.0.320.0190.00015.39
7.0.310.0070.00715.43
7.0.300.0150.00315.27
7.0.290.0080.00615.39
7.0.280.0070.00515.45
7.0.270.0030.01315.13
7.0.260.0100.00615.66
7.0.250.0080.00815.66
7.0.240.0110.00715.52
7.0.230.0100.00715.60
7.0.220.0110.01015.47
7.0.210.0120.00215.55
7.0.200.0090.00415.05
7.0.190.0120.00415.50
7.0.180.0130.00415.40
7.0.170.0150.00015.40
7.0.160.0080.00515.30
7.0.150.0140.00315.57
7.0.140.0110.00315.41
7.0.130.0130.00415.55
7.0.120.0090.00715.54
7.0.110.0000.01515.34
7.0.100.0070.00715.20
7.0.90.0040.01115.59
7.0.80.0100.00715.47
7.0.70.0600.02817.73
7.0.60.0500.03017.73
7.0.50.0530.02818.00
7.0.40.0600.03016.98
7.0.30.0510.03817.00
7.0.20.0540.03516.91
7.0.10.0620.02716.81
7.0.00.0470.03217.00
5.6.380.0070.01014.34
5.6.370.0140.00514.31
5.6.360.0160.00314.34
5.6.350.0180.00014.46
5.6.340.0060.00914.17
5.6.330.0000.01314.30
5.6.320.0140.00414.51
5.6.310.0100.00314.57
5.6.300.0150.00014.22
5.6.290.0080.00514.45
5.6.280.0040.04217.69
5.6.270.0180.00014.45
5.6.260.0120.00314.49
5.6.250.0060.00914.45
5.6.240.0140.00614.21
5.6.230.0140.00414.53
5.6.220.0440.02817.56
5.6.210.0490.03017.65
5.6.200.0510.02617.71
5.6.190.0470.03617.76
5.6.180.0570.03117.71
5.6.170.0370.03817.72
5.6.160.0540.03417.65
5.6.150.0560.03617.81
5.6.140.0470.03017.72
5.6.130.0460.03517.73
5.6.120.0100.03817.73
5.6.110.0240.03817.87
5.6.100.0510.03917.78
5.6.90.0460.03017.58
5.6.80.0550.02417.43
5.6.70.0490.03217.31
5.6.60.0520.03217.42
5.6.50.0440.03517.36
5.6.40.0500.03217.30
5.6.30.0480.03117.52
5.6.20.0450.02817.37
5.6.10.0490.02517.33
5.6.00.0470.03017.36
5.5.380.0100.00711.27
5.5.370.0080.00811.27
5.5.360.0450.02815.84
5.5.350.0470.03015.85
5.5.340.0430.03016.11
5.5.330.0370.03416.09
5.5.320.0440.03916.11
5.5.310.0510.03016.08
5.5.300.0510.03016.10
5.5.290.0490.02716.11
5.5.280.0040.03716.06
5.5.270.0460.03916.04
5.5.260.0480.03416.11
5.5.250.0450.03016.00
5.5.240.0450.02915.73
5.5.230.0550.03515.75
5.5.220.0520.02915.79
5.5.210.0530.02715.75
5.5.200.0520.02615.74
5.5.190.0380.03315.77
5.5.180.0490.02915.75
5.5.170.0070.01114.29
5.5.160.0550.04015.77
5.5.150.0490.03315.65
5.5.140.0470.03315.78
5.5.130.0570.03215.79
5.5.120.0470.04015.73
5.5.110.0430.02915.74
5.5.100.0420.03015.70
5.5.90.0370.03215.72
5.5.80.0530.02615.73
5.5.70.0520.02715.70
5.5.60.0500.02615.63
5.5.50.0510.02715.69
5.5.40.0460.03115.67
5.5.30.0470.02515.73
5.5.20.0510.03715.69
5.5.10.0460.02615.72
5.5.00.0440.02815.70

preferences:
71.93 ms | 403 KiB | 5 Q