3v4l.org

run code in 300+ PHP versions simultaneously
<?php class D implements DateTimeInterface { public function diff(DateTimeInterface $datetime2, $absolute = false) {} public function format( string $format ) {} public function getOffset() {} public function getTimestamp() {} public function getTimezone () {} public function __wakeup () {} }

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.0030.01218.59
8.3.50.0090.01121.21
8.3.40.0070.01118.76
8.3.30.0140.00320.21
8.3.20.0040.00420.53
8.3.10.0040.00421.02
8.3.00.0080.00023.66
8.2.180.0070.00716.38
8.2.170.0110.00422.96
8.2.160.0110.00420.43
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00420.89
8.2.110.0040.00421.06
8.2.100.0080.00317.91
8.2.90.0090.00019.09
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0050.00517.86
8.2.30.0090.00019.49
8.2.20.0000.00717.50
8.2.10.0070.00017.68
8.2.00.0040.00417.68
8.1.280.0150.00325.92
8.1.270.0070.00023.99
8.1.260.0070.00026.35
8.1.250.0020.00528.09
8.1.240.0070.00323.90
8.1.230.0110.00021.02
8.1.220.0040.00418.77
8.1.210.0030.00718.97
8.1.200.0060.00317.34
8.1.190.0000.00817.30
8.1.180.0030.00618.10
8.1.170.0000.00818.64
8.1.160.0070.00018.75
8.1.150.0000.00818.46
8.1.140.0040.00417.38
8.1.130.0000.00717.82
8.1.120.0080.00017.41
8.1.110.0000.00717.39
8.1.100.0070.00017.39
8.1.90.0040.00417.44
8.1.80.0000.00717.36
8.1.70.0000.00717.38
8.1.60.0030.00617.56
8.1.50.0040.00417.41
8.1.40.0050.00317.48
8.1.30.0040.00417.50
8.1.20.0040.00417.64
8.1.10.0000.00817.43
8.1.00.0040.00417.30
8.0.300.0000.00719.89
8.0.290.0000.00717.15
8.0.280.0070.00018.29
8.0.270.0030.00517.05
8.0.260.0000.00716.72
8.0.250.0000.00816.93
8.0.240.0000.00716.95
8.0.230.0040.00316.91
8.0.220.0030.00316.84
8.0.210.0070.00016.86
8.0.200.0060.00016.98
8.0.190.0030.00316.91
8.0.180.0070.00016.85
8.0.170.0040.00416.79
8.0.160.0070.00016.88
8.0.150.0000.00716.91
8.0.140.0070.00016.83
8.0.130.0030.00313.39
8.0.120.0040.00416.87
8.0.110.0070.00016.78
8.0.100.0000.00716.80
8.0.90.0040.00416.88
8.0.80.0030.01616.92
8.0.70.0000.00716.89
8.0.60.0040.00416.83
8.0.50.0000.00716.76
8.0.30.0070.01216.92
8.0.20.0160.00517.40
8.0.10.0040.00417.06
8.0.00.0110.00716.75
7.4.330.0050.00015.05
7.4.320.0030.00316.56
7.4.300.0000.00716.37
7.4.290.0070.00016.56
7.4.280.0040.00416.39
7.4.270.0040.00416.61
7.4.260.0000.00613.21
7.4.250.0040.00416.45
7.4.240.0030.00316.59
7.4.230.0020.00516.57
7.4.220.0090.00916.56
7.4.210.0070.00816.61
7.4.200.0000.00716.54
7.4.190.0030.00316.58
7.4.160.0130.00316.63
7.4.150.0170.00317.40
7.4.140.0150.00617.86
7.4.130.0110.00916.47
7.4.120.0140.00316.40
7.4.110.0120.00616.41
7.4.100.0090.00916.36
7.4.90.0090.00916.36
7.4.80.0090.01219.39
7.4.70.0070.01516.21
7.4.60.0090.00916.54
7.4.50.0000.00916.31
7.4.40.0080.00822.77
7.4.30.0170.00716.54
7.4.00.0040.01214.70
7.3.330.0050.00013.22
7.3.320.0030.00313.22
7.3.310.0070.00016.33
7.3.300.0000.00716.09
7.3.290.0030.01016.25
7.3.280.0060.00916.26
7.3.270.0140.00317.40
7.3.260.0090.01018.24
7.3.250.0090.00716.35
7.3.240.0160.00016.22
7.3.230.0100.00716.39
7.3.210.0100.00716.49
7.3.200.0130.00719.39
7.3.190.0110.00616.29
7.3.180.0130.00316.11
7.3.170.0080.00816.27
7.3.160.0060.01616.25
7.3.120.0100.00314.98
7.3.10.0040.01116.65
7.3.00.0030.01016.37
7.2.330.0070.01116.56
7.2.320.0060.01116.18
7.2.310.0110.01116.54
7.2.300.0120.01216.52
7.2.290.0100.00616.52
7.2.130.0070.00816.68
7.2.120.0070.00516.75
7.2.110.0060.00516.79
7.2.100.0070.00616.71
7.2.90.0060.00616.83
7.2.80.0080.00516.70
7.2.70.0040.00916.76
7.2.60.0070.00616.64
7.2.50.0060.00616.78
7.2.40.0050.01016.93
7.2.30.0040.00716.78
7.2.20.0090.00316.96
7.2.10.0000.01316.66
7.2.00.0030.00717.52
7.1.250.0140.00115.79
7.1.240.0030.01215.41
7.1.230.0000.01315.59
7.1.220.0030.01015.52
7.1.210.0090.00315.70
7.1.200.0060.00715.46
7.1.190.0060.00615.81
7.1.180.0060.01015.45
7.1.170.0060.00315.72
7.1.160.0000.01515.60
7.1.150.0030.01015.58
7.1.140.0040.01115.44
7.1.130.0000.01515.73
7.1.120.0030.00615.64
7.1.110.0040.01115.42
7.1.100.0070.00516.71
7.1.90.0100.00615.58
7.1.80.0100.00615.66
7.1.70.0050.00516.33
7.1.60.0090.01117.29
7.1.50.0050.00916.09
7.1.40.0060.00615.74
7.1.30.0080.00015.74
7.1.20.0000.00815.48
7.1.10.0060.00615.46
7.1.00.0060.03518.93
7.0.330.0080.00315.21
7.0.320.0060.00615.22
7.0.310.0040.01115.27
7.0.300.0100.00715.05
7.0.290.0090.00415.35
7.0.280.0110.00415.27
7.0.270.0030.00615.21
7.0.260.0040.00414.97
7.0.250.0060.00315.20
7.0.240.0040.00815.44
7.0.230.0030.01315.51
7.0.220.0090.00015.32
7.0.210.0060.00615.27
7.0.200.0050.00615.88
7.0.190.0040.00815.24
7.0.180.0000.01015.23
7.0.170.0060.00615.37
7.0.160.0040.00815.44
7.0.150.0060.00915.51
7.0.140.0030.04018.79
7.0.130.0070.00715.20
7.0.120.0070.00315.00
7.0.110.0070.02417.67
7.0.100.0030.02517.55
7.0.90.0030.02717.49
7.0.80.0120.02317.56
7.0.70.0130.03617.67
7.0.60.0090.02217.63
7.0.50.0100.03817.61
7.0.40.0050.04416.65
7.0.30.0030.03216.55
7.0.20.0050.02816.38
7.0.10.0030.04716.67
7.0.00.0030.02316.61
5.6.380.0000.01314.20
5.6.370.0060.00614.28
5.6.360.0000.01514.39
5.6.350.0030.00614.17
5.6.340.0120.00314.30
5.6.330.0000.01413.88
5.6.320.0080.00414.20
5.6.310.0050.00514.13
5.6.300.0060.00614.20
5.6.290.0000.01214.15
5.6.280.0040.03917.64
5.6.270.0040.00714.20
5.6.260.0030.02517.47
5.6.250.0020.03017.53
5.6.240.0080.02517.32
5.6.230.0080.04017.50
5.6.220.0030.02517.41
5.6.210.0050.03917.17
5.6.200.0040.03817.36
5.6.190.0100.04117.36
5.6.180.0060.03317.47
5.6.170.0050.02617.55
5.6.160.0100.03317.35
5.6.150.0120.03717.43
5.6.140.0100.02217.35
5.6.130.0070.03117.47
5.6.120.0050.03017.23
5.6.110.0030.02917.32
5.6.100.0060.04117.29
5.6.90.0060.03617.23
5.6.80.0070.03217.10
5.6.70.0080.03216.96
5.6.60.0060.03216.89
5.6.50.0100.02517.02
5.6.40.0100.03016.94
5.6.30.0060.04616.94
5.6.20.0070.03816.88
5.6.10.0100.03216.84
5.6.00.0050.02317.03
5.5.380.0040.02314.33
5.5.370.0030.02314.32
5.5.360.0060.04114.37
5.5.350.0070.04114.35
5.5.340.0080.02814.38
5.5.330.0070.03814.31
5.5.320.0090.03314.61
5.5.310.0050.04614.56
5.5.300.0050.02214.56
5.5.290.0110.04014.59
5.5.280.0040.04014.58
5.5.270.0030.03514.61
5.5.260.0100.03314.50
5.5.250.0120.03714.13
5.5.240.0110.02714.11
5.5.230.0070.03814.24
5.5.220.0050.02514.31
5.5.210.0070.02014.25
5.5.200.0000.03314.16
5.5.190.0060.03314.10
5.5.180.0050.03614.28
5.5.170.0090.00011.02
5.5.160.0070.03614.07
5.5.150.0100.04614.24
5.5.140.0050.02514.13
5.5.130.0030.02314.10
5.5.120.0050.02514.28
5.5.110.0020.04114.28
5.5.100.0040.02413.91
5.5.90.0070.02314.21
5.5.80.0020.02614.04
5.5.70.0020.02714.13
5.5.60.0020.02113.99
5.5.50.0010.02314.17
5.5.40.0020.02214.19
5.5.30.0030.02014.04
5.5.20.0080.01813.85
5.5.10.0050.02013.79
5.5.00.0020.02514.20
5.4.450.0050.03615.36
5.4.440.0030.03714.96
5.4.430.0030.03015.15
5.4.420.0100.03715.09
5.4.410.0080.03615.17
5.4.400.0040.03514.90
5.4.390.0020.04214.99
5.4.380.0070.03815.05
5.4.370.0030.03715.14
5.4.360.0050.03114.91
5.4.350.0030.03514.90
5.4.340.0080.03714.90
5.4.330.0030.00810.68
5.4.320.0090.03514.72
5.4.310.0020.04215.04
5.4.300.0080.03714.92
5.4.290.0090.02514.90
5.4.280.0060.03814.86
5.4.270.0050.02415.01
5.4.260.0040.02014.75
5.4.250.0010.02314.82
5.4.240.0040.02015.05
5.4.230.0060.03514.83
5.4.220.0060.02115.01
5.4.210.0050.01814.89
5.4.200.0050.02014.93
5.4.190.0080.01714.91
5.4.180.0030.02414.85
5.4.170.0050.01914.74
5.4.160.0000.02614.91
5.4.150.0020.02714.96
5.4.140.0020.02313.51
5.4.130.0020.02013.81
5.4.120.0020.02113.71
5.4.110.0050.01813.68
5.4.100.0030.02113.61
5.4.90.0030.02013.61
5.4.80.0030.02013.62
5.4.70.0020.02513.49
5.4.60.0050.01813.52
5.4.50.0050.02213.63
5.4.40.0080.01813.73
5.4.30.0000.02113.55
5.4.20.0020.02213.62
5.4.10.0040.01713.41
5.4.00.0000.01913.33
5.3.290.0000.04012.56
5.3.280.0020.02512.44
5.3.270.0070.01712.62
5.3.260.0000.02512.49
5.3.250.0030.03012.44
5.3.240.0050.02012.51
5.3.230.0020.02212.55
5.3.220.0030.02212.45
5.3.210.0040.01812.31
5.3.200.0020.02212.18
5.3.190.0050.02012.37
5.3.180.0030.01812.51
5.3.170.0030.02112.55
5.3.160.0070.01812.49
5.3.150.0040.02012.36
5.3.140.0050.02212.44
5.3.130.0080.01712.47
5.3.120.0050.02112.44
5.3.110.0050.01812.43
5.3.100.0000.02012.17
5.3.90.0050.01612.10
5.3.80.0070.01412.27
5.3.70.0040.01812.17
5.3.60.0030.01912.05
5.3.50.0070.02012.13
5.3.40.0030.02012.07
5.3.30.0100.01211.99
5.3.20.0000.01811.81
5.3.10.0070.01711.85
5.3.00.0020.01911.96
5.2.170.0010.01610.67
5.2.160.0030.01410.66
5.2.150.0050.01210.64
5.2.140.0030.01510.65
5.2.130.0030.01410.64
5.2.120.0020.01810.64
5.2.110.0020.01810.64
5.2.100.0020.01510.64
5.2.90.0050.01210.64
5.2.80.0030.01310.65
5.2.70.0030.01310.64
5.2.60.0030.01410.64
5.2.50.0020.03610.64
5.2.40.0020.03110.64
5.2.30.0030.01710.64
5.2.20.0050.03110.64
5.2.10.0020.03410.64
5.2.00.0080.02010.64
5.1.60.0000.01410.64
5.1.50.0020.01310.64
5.1.40.0020.01310.64
5.1.30.0000.01810.64
5.1.20.0030.02910.64
5.1.10.0020.02710.64
5.1.00.0040.01210.64
5.0.50.0020.02010.64
5.0.40.0050.01210.64
5.0.30.0020.03210.64
5.0.20.0030.01310.64
5.0.10.0010.01610.64
5.0.00.0040.03210.64
4.4.90.0020.00710.64
4.4.80.0010.00910.64
4.4.70.0000.01410.64
4.4.60.0020.01710.64
4.4.50.0020.01710.64
4.4.40.0020.02810.64
4.4.30.0000.01910.64
4.4.20.0040.01910.64
4.4.10.0010.01310.64
4.4.00.0020.01910.64
4.3.110.0030.00810.64
4.3.100.0020.01110.64
4.3.90.0010.01110.64
4.3.80.0060.02310.64
4.3.70.0030.01310.64
4.3.60.0020.01510.64
4.3.50.0030.01710.64
4.3.40.0020.02410.64
4.3.30.0020.01210.64
4.3.20.0030.01810.64
4.3.10.0000.02110.64
4.3.00.0010.01110.64

preferences:
49.64 ms | 400 KiB | 5 Q