3v4l.org

run code in 300+ PHP versions simultaneously
<?php $firstOfJan = new DateTimeImmutable("2019-01-01"); $firstOfFeb = new DateTimeImmutable("2019-02-01"); $firstOfMar = new DateTimeImmutable("2019-03-01"); var_dump($firstOfJan->diff($firstOfFeb)->days > $firstOfFeb->diff($firstOfMar)->days); var_dump($firstOfJan->diff($firstOfFeb)->days); var_dump($firstOfFeb->diff($firstOfMar)->days);

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.0080.01120.84
8.4.110.0120.00820.84
8.4.100.0100.00917.80
8.4.90.0130.00620.80
8.4.80.0070.00219.13
8.4.70.0110.00920.91
8.4.60.0060.00320.70
8.4.50.0120.00818.64
8.4.40.0100.01019.64
8.4.30.0130.00619.83
8.4.20.0130.00718.90
8.4.10.0060.00317.79
8.3.250.0140.00419.05
8.3.240.0070.00216.87
8.3.230.0130.00616.70
8.3.220.0110.00718.94
8.3.210.0110.00716.82
8.3.200.0050.00416.35
8.3.190.0110.00817.16
8.3.180.0110.00720.73
8.3.170.0110.00718.93
8.3.160.0110.00716.49
8.3.150.0050.00316.96
8.3.140.0040.00419.22
8.3.130.0110.00418.64
8.3.120.0000.00919.04
8.3.110.0090.00020.94
8.3.100.0030.00724.06
8.3.90.0000.00726.77
8.3.80.0060.00318.68
8.3.70.0180.00316.63
8.3.60.0090.01218.43
8.3.50.0060.00920.12
8.3.40.0060.00918.64
8.3.30.0110.00418.71
8.3.20.0030.00620.79
8.3.10.0070.00021.76
8.3.00.0000.00821.66
8.2.290.0140.00416.87
8.2.280.0130.00518.60
8.2.270.0080.00816.98
8.2.260.0000.00817.02
8.2.250.0000.00818.60
8.2.240.0110.00717.24
8.2.230.0080.00022.58
8.2.220.0050.00337.54
8.2.210.0040.01126.77
8.2.200.0000.01018.54
8.2.190.0110.00418.29
8.2.180.0070.01117.00
8.2.170.0150.00422.96
8.2.160.0060.00819.30
8.2.150.0070.00024.18
8.2.140.0000.00924.66
8.2.130.0080.00019.83
8.2.120.0040.00426.35
8.2.110.0050.00522.23
8.2.100.0080.00417.84
8.2.90.0050.00317.75
8.2.80.0060.00317.97
8.2.70.0050.00318.05
8.2.60.0050.00318.08
8.2.50.0030.00618.10
8.2.40.0000.00819.20
8.2.30.0030.00320.68
8.2.20.0070.00018.06
8.2.10.0040.00419.57
8.2.00.0030.00318.06
8.1.330.0120.00716.35
8.1.320.0110.00718.06
8.1.310.0070.01016.78
8.1.300.0060.01316.27
8.1.290.0030.00630.84
8.1.280.0070.01025.92
8.1.270.0000.00722.05
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00422.54
8.1.230.0080.00322.71
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0030.00717.47
8.1.190.0050.00317.47
8.1.180.0040.00418.10
8.1.170.0030.00618.63
8.1.160.0050.00218.98
8.1.150.0070.00018.90
8.1.140.0040.00419.16
8.1.130.0000.00720.28
8.1.120.0030.00717.70
8.1.110.0040.00417.68
8.1.100.0040.00417.70
8.1.90.0000.00817.68
8.1.80.0000.00717.74
8.1.70.0050.00217.64
8.1.60.0030.00617.74
8.1.50.0040.00417.72
8.1.40.0000.00817.58
8.1.30.0050.00317.77
8.1.20.0030.00617.71
8.1.10.0040.00417.77
8.1.00.0000.00717.77
8.0.300.0070.00021.96
8.0.290.0040.00416.75
8.0.280.0000.00718.49
8.0.270.0000.00717.37
8.0.260.0000.00618.55
8.0.250.0000.00717.14
8.0.240.0040.00417.11
8.0.230.0060.00317.20
8.0.220.0000.00716.99
8.0.210.0000.00717.16
8.0.200.0030.00317.25
8.0.190.0030.00317.16
8.0.180.0050.00317.03
8.0.170.0060.00317.05
8.0.160.0030.00517.08
8.0.150.0000.00817.11
8.0.140.0050.00317.11
8.0.130.0050.00013.49
8.0.120.0000.00817.07
8.0.110.0000.00817.05
8.0.100.0050.00316.95
8.0.90.0000.00717.14
8.0.80.0060.01117.07
8.0.70.0040.00417.07
8.0.60.0040.00416.93
8.0.50.0040.00417.24
8.0.30.0120.00417.27
8.0.20.0140.00517.34
8.0.10.0000.00717.11
8.0.00.0080.01217.06
7.4.330.0020.00216.73
7.4.320.0030.00316.82
7.4.300.0060.00016.71
7.4.290.0080.00016.62
7.4.280.0040.00416.65
7.4.270.0050.00216.71
7.4.260.0000.00716.77
7.4.250.0030.00316.63
7.4.240.0000.00716.69
7.4.230.0070.00016.88
7.4.220.0000.00716.70
7.4.210.0080.00616.72
7.4.200.0000.00716.59
7.4.160.0100.01016.64
7.4.140.0130.00617.86
7.4.130.0110.00716.84
7.4.120.0030.01616.52
7.4.110.0070.01016.69
7.4.100.0000.01716.57
7.4.90.0110.00616.77
7.4.80.0100.00719.39
7.4.70.0100.01016.82
7.4.60.0090.01516.70
7.4.50.0060.00916.86
7.4.40.0060.01516.66
7.4.00.0070.00315.31
7.3.330.0000.00613.18
7.3.320.0030.00213.10
7.3.310.0030.00316.31
7.3.300.0070.00016.38
7.3.290.0000.00716.39
7.3.280.0080.01016.33
7.3.260.0100.00916.54
7.3.240.0080.00916.58
7.3.230.0090.00916.55
7.3.210.0070.01016.54
7.3.200.0140.00316.45
7.3.190.0060.01216.82
7.3.180.0090.01216.41
7.3.170.0130.00916.44
7.3.160.0030.01416.39
7.3.40.0100.01314.71
7.3.30.0160.00814.87
7.3.20.0270.00614.94
7.3.10.0230.00414.71
7.3.00.0110.00314.89
7.2.330.0140.00316.69
7.2.320.0110.01116.60
7.2.310.0130.00316.67
7.2.300.0030.01316.45
7.2.290.0040.01316.86
7.2.170.0160.01315.03
7.2.160.0220.01415.09
7.2.150.0270.00715.17
7.2.140.0140.01114.99
7.2.130.0250.01015.18
7.2.120.0280.00814.85
7.2.110.0300.00714.95
7.2.100.0250.00015.12
7.2.90.0190.00915.10
7.2.80.0130.00815.09
7.2.70.0160.01315.13
7.2.60.0170.01115.13
7.2.50.0220.01314.87
7.2.40.0200.00014.79
7.2.30.0240.00314.97
7.2.20.0210.01414.96
7.2.10.0130.02014.91
7.2.00.0140.00415.04
7.1.280.0210.00014.15
7.1.270.0460.01114.20
7.1.260.0210.00613.87
7.1.250.0190.00913.95

preferences:
28.86 ms | 403 KiB | 5 Q