3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = date_create("2012-01-01"); $date2 = date_create("2016-07-31"); $diff = date_diff($date1,$date2); echo $diff->format("%y yıl %m ay %d gün");

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.0160.00320.03
8.4.10.0030.00623.92
8.3.150.0060.00317.08
8.3.140.0000.00818.38
8.3.130.0060.00318.46
8.3.120.0060.00618.53
8.3.110.0100.00020.94
8.3.100.0000.00824.06
8.3.90.0000.01126.77
8.3.80.0060.00316.50
8.3.70.0090.00616.58
8.3.60.0110.00416.75
8.3.50.0040.01120.30
8.3.40.0040.01120.04
8.3.30.0130.00318.88
8.3.20.0060.00324.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.260.0000.00716.67
8.2.250.0040.00416.69
8.2.240.0060.00318.83
8.2.230.0060.00322.58
8.2.220.0030.00637.54
8.2.210.0080.00026.77
8.2.200.0040.00418.16
8.2.190.0140.00718.29
8.2.180.0070.01125.92
8.2.170.0110.00418.96
8.2.160.0100.00722.96
8.2.150.0080.00025.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00026.16
8.2.110.0090.00022.21
8.2.100.0070.00417.91
8.2.90.0000.00819.20
8.2.80.0030.00618.04
8.2.70.0040.00817.63
8.2.60.0030.00618.05
8.2.50.0000.00818.07
8.2.40.0040.00418.34
8.2.30.0080.00318.13
8.2.20.0060.00320.55
8.2.10.0000.00718.13
8.2.00.0050.00319.31
8.1.310.0050.00315.94
8.1.300.0030.01617.83
8.1.290.0100.00030.84
8.1.280.0100.00325.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0070.00323.87
8.1.230.0080.00319.21
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.40
8.1.180.0040.00418.10
8.1.170.0060.00318.70
8.1.160.0000.00818.78
8.1.150.0000.00718.78
8.1.140.0030.00617.50
8.1.130.0040.00417.48
8.1.120.0050.00518.91
8.1.110.0080.00617.63
8.1.100.0090.00318.44
8.1.90.0090.00417.64
8.1.80.0080.00518.52
8.1.70.0110.00217.63
8.1.60.0090.00717.61
8.1.50.0120.00617.59
8.1.40.0120.00717.66
8.1.30.0180.00217.65
8.1.20.0090.01017.65
8.1.10.0100.00918.45
8.1.00.0150.00517.61
8.0.300.0050.00218.77
8.0.290.0000.00817.30
8.0.280.0030.00318.46
8.0.270.0080.00017.25
8.0.260.0000.00717.02
8.0.250.0080.00517.42
8.0.240.0100.00717.08
8.0.230.0090.00816.95
8.0.220.0120.00516.86
8.0.210.0080.00816.95
8.0.200.0070.01016.95
8.0.190.0110.00516.99
8.0.180.0090.00816.97
8.0.170.0140.00217.03
8.0.160.0110.00517.03
8.0.150.0120.00516.92
8.0.140.0090.00717.86
8.0.130.0110.00517.00
8.0.120.0110.00616.89
8.0.110.0110.00416.94
8.0.100.0150.00216.88
8.0.90.0070.00817.83
8.0.80.0140.00417.79
8.0.70.0160.00417.76
8.0.60.0090.00816.96
8.0.50.0140.00316.91
8.0.30.0120.00416.93
8.0.20.0150.00217.81
8.0.10.0120.00317.10
7.4.330.0110.00414.29
7.4.320.0110.00616.50
7.4.300.0120.00516.56
7.4.290.0130.00316.45
7.4.280.0140.00316.48
7.4.270.0120.00616.53
7.4.260.0110.00716.46
7.4.250.0120.00616.55
7.4.240.0120.00616.54
7.4.230.0130.00616.54
7.4.220.0120.00316.53
7.4.210.0090.00616.52
7.4.200.0100.00516.48
7.4.190.0090.00716.52
7.4.180.0070.00716.57
7.4.160.0060.00716.59
7.4.150.0080.00816.53
7.4.140.0100.00616.40
7.4.130.0140.00116.51
7.4.120.0120.00316.48
7.4.110.0100.00617.30
7.4.100.0080.00716.49
7.4.90.0090.00616.46
7.4.80.0120.00416.43
7.4.70.0100.00516.43
7.4.60.0060.00617.35
7.4.50.0050.00917.28
7.4.40.0070.00717.25
7.4.30.0110.00316.39
7.4.20.0070.00716.46
7.4.10.0130.00116.48
7.4.00.0070.00416.96
7.3.320.0150.00116.26
7.0.280.0060.00416.81
5.6.00.0040.00416.97
5.5.220.0130.00217.04
5.4.120.0030.00514.29

preferences:
34.62 ms | 403 KiB | 5 Q