3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Get an interval between 1st January and 14th January $diff1 = (new DateTimeImmutable('2019-01-01'))->diff(new DateTimeImmutable('2019-01-14')); // Get another interval, but this time an extra day on the end $diff2 = (new DateTimeImmutable('2019-01-01'))->diff(new DateTimeImmutable('2019-01-15')); // Check if the first interval is shorter than the second var_dump($diff1 < $diff2); // Oh, that's weird... // Let's peek inside the two intervals var_export($diff1, true); var_export($diff2, true); // Now let's check again var_dump($diff1 < $diff2);

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.120.0110.00920.73
8.4.110.0100.01022.81
8.4.100.0100.01517.84
8.4.90.0120.00918.65
8.4.80.0120.00719.70
8.4.70.0120.00818.03
8.4.60.0140.00818.80
8.4.50.0110.01017.79
8.4.40.0100.01022.15
8.4.30.0040.01517.89
8.4.20.0150.00320.52
8.4.10.0040.00417.93
8.3.250.0130.00518.75
8.3.240.0110.00716.81
8.3.230.0050.00516.61
8.3.220.0060.00317.04
8.3.210.0040.00416.78
8.3.200.0070.00216.73
8.3.190.0110.00817.33
8.3.180.0120.00717.05
8.3.170.0040.01416.90
8.3.160.0040.00418.54
8.3.150.0110.00720.85
8.3.140.0080.00016.78
8.3.130.0120.00318.50
8.3.120.0090.00019.03
8.3.110.0040.00420.94
8.3.100.0090.00024.06
8.3.90.0080.01126.77
8.3.80.0060.00617.97
8.3.70.0090.00916.88
8.3.60.0060.00918.56
8.3.50.0100.00519.36
8.3.40.0090.00618.98
8.3.30.0110.00718.86
8.3.20.0040.00420.77
8.3.10.0040.00423.70
8.3.00.0000.00721.77
8.2.290.0130.00520.47
8.2.280.0080.01120.23
8.2.270.0110.00717.41
8.2.260.0070.01120.45
8.2.250.0040.00416.87
8.2.240.0060.00317.26
8.2.230.0050.00322.58
8.2.220.0090.00037.54
8.2.210.0090.00926.77
8.2.200.0030.00718.41
8.2.190.0040.01116.58
8.2.180.0120.00416.75
8.2.170.0110.00722.96
8.2.160.0070.00721.18
8.2.150.0000.00824.18
8.2.140.0000.00924.66
8.2.130.0030.00618.09
8.2.120.0090.00026.35
8.2.110.0040.00720.35
8.2.100.0080.00418.03
8.2.90.0040.00417.88
8.2.80.0000.00817.97
8.2.70.0030.00617.90
8.2.60.0000.00818.22
8.2.50.0030.00618.10
8.2.40.0000.00819.24
8.2.30.0030.00520.72
8.2.20.0000.00718.15
8.2.10.0030.00519.46
8.2.00.0070.00018.14
8.1.330.0120.00620.66
8.1.320.0120.00916.12
8.1.310.0060.00317.08
8.1.300.0060.00318.01
8.1.290.0060.00330.84
8.1.280.0070.01025.92
8.1.270.0040.00422.17
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.86
8.1.230.0040.00823.83
8.1.220.0040.00417.76
8.1.210.0030.00618.77
8.1.200.0060.00317.50
8.1.190.0000.00817.36
8.1.180.0040.00418.10
8.1.170.0030.00518.78
8.1.160.0000.00719.09
8.1.150.0040.00418.92
8.1.140.0040.00419.04
8.1.130.0030.00320.37
8.1.120.0050.00317.72
8.1.110.0050.00317.66
8.1.100.0050.00217.56
8.1.90.0050.00317.57
8.1.80.0050.00317.66
8.1.70.0000.01017.58
8.1.60.0060.00317.66
8.1.50.0040.00417.73
8.1.40.0040.00417.68
8.1.30.0040.00817.84
8.1.20.0050.00317.80
8.1.10.0000.00717.69
8.1.00.0040.00417.68
8.0.300.0070.00019.77
8.0.290.0040.00417.13
8.0.280.0030.00318.66
8.0.270.0000.00717.32
8.0.260.0090.00018.50
8.0.250.0050.00217.16
8.0.240.0070.00017.33
8.0.230.0040.00417.16
8.0.220.0030.00317.05
8.0.210.0000.00717.19
8.0.200.0030.00517.21
8.0.190.0030.00517.21
8.0.180.0070.00017.09
8.0.170.0060.00317.21
8.0.160.0040.00417.26
8.0.150.0050.00317.13
8.0.140.0040.00417.13
8.0.130.0060.00013.50
8.0.120.0000.00817.14
8.0.110.0020.00517.09
8.0.100.0040.00417.30
8.0.90.0000.00717.13
8.0.80.0070.00817.17
8.0.70.0030.00617.03
8.0.60.0000.00717.05
8.0.50.0000.00717.16
8.0.30.0070.01217.35
8.0.20.0150.00417.24
8.0.10.0040.00417.20
8.0.00.0120.00617.00
7.4.330.0000.00516.79
7.4.320.0030.00316.70
7.4.300.0000.00616.79
7.4.290.0030.00316.67
7.4.280.0030.00416.70
7.4.270.0080.00016.69
7.4.260.0040.00416.75
7.4.250.0000.00716.73
7.4.240.0030.00516.79
7.4.230.0000.00816.84
7.4.220.0030.00516.77
7.4.210.0100.00616.67
7.4.200.0000.00716.88
7.4.160.0110.00716.67
7.4.140.0140.00417.86
7.4.130.0060.01216.72
7.4.120.0090.00916.65
7.4.110.0140.00416.57
7.4.100.0060.01216.74
7.4.90.0120.00616.82
7.4.80.0110.00719.39
7.4.70.0070.01016.76
7.4.60.0030.01316.57
7.4.50.0090.00616.58
7.4.40.0060.01216.73
7.4.00.0050.01115.04
7.3.330.0000.00513.10
7.3.320.0030.00313.10
7.3.310.0040.00416.41
7.3.300.0040.00416.46
7.3.290.0090.00616.41
7.3.280.0120.00916.34
7.3.260.0100.00816.61
7.3.240.0100.00916.56
7.3.230.0030.01716.53
7.3.210.0100.00616.54
7.3.200.0140.00716.57
7.3.190.0140.00416.55
7.3.180.0130.01016.50
7.3.170.0190.00816.71
7.3.160.0060.01316.57
7.3.120.0050.01414.77
7.3.110.0090.00814.81
7.3.100.0080.00614.92
7.3.90.0040.01014.84
7.3.80.0070.00715.03
7.3.70.0040.00515.07
7.3.60.0060.00914.76
7.3.50.0060.01214.99
7.3.40.0020.01114.88
7.3.30.0090.00814.78
7.3.20.0100.00216.67
7.3.10.0070.00616.65
7.3.00.0060.00716.65
7.2.330.0110.00616.51
7.2.320.0120.01016.59
7.2.310.0100.00616.57
7.2.300.0130.00816.56
7.2.290.0150.00416.68
7.2.250.0080.01015.12
7.2.240.0130.00615.25
7.2.230.0120.00515.07
7.2.220.0050.00614.87
7.2.210.0020.01015.05
7.2.200.0060.00815.19
7.2.190.0050.00815.06
7.2.180.0060.01015.16
7.2.170.0080.00514.98
7.2.160.0130.00715.03
7.2.150.0110.00016.91
7.2.140.0090.00316.91
7.2.130.0150.00916.86
7.2.120.0120.00016.82
7.2.110.0030.00816.98
7.2.100.0160.00316.71
7.2.90.0080.01416.71
7.2.80.0040.00816.61
7.2.70.0000.01116.55
7.2.60.0130.00316.81
7.2.50.0090.00316.98
7.2.40.0040.00816.68
7.2.30.0060.00616.77
7.2.20.0040.00716.77
7.2.10.0080.00417.02
7.2.00.0040.00716.70
7.1.330.0020.01215.88
7.1.320.0030.00715.93
7.1.310.0040.00915.91
7.1.300.0080.00715.92
7.1.290.0050.01015.98
7.1.280.0060.00715.76
7.1.270.0070.00515.80
7.1.260.0020.01015.84
7.1.250.0090.00315.85

preferences:
29.59 ms | 403 KiB | 5 Q