3v4l.org

run code in 300+ PHP versions simultaneously
<?php $to_time = new \DateTime('2008-12-13 18:42:00'); $from_time = new \DateTime('2008-12-13 18:41:58'); $diff = $from_time->diff($to_time); echo $diff->format('%i Minutes %s Seconds');

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.0070.00718.30
8.3.50.0100.01222.00
8.3.40.0040.01118.92
8.3.30.0140.00019.17
8.3.20.0040.00420.34
8.3.10.0030.00621.82
8.3.00.0000.00819.08
8.2.180.0070.01518.67
8.2.170.0040.01122.96
8.2.160.0070.00722.03
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00726.16
8.2.120.0040.00420.98
8.2.110.0100.00019.21
8.2.100.0090.00317.91
8.2.90.0040.00419.36
8.2.80.0030.00617.97
8.2.70.0030.00517.63
8.2.60.0000.00818.16
8.2.50.0030.00618.07
8.2.40.0040.00418.28
8.2.30.0050.00318.02
8.2.20.0020.00517.86
8.2.10.0040.00418.03
8.2.00.0060.00317.83
8.1.280.0070.00725.92
8.1.270.0080.00018.94
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0200.00321.12
8.1.230.0060.00617.77
8.1.220.0050.00317.79
8.1.210.0060.00318.77
8.1.200.0050.00517.48
8.1.190.0040.00417.35
8.1.180.0000.00718.10
8.1.170.0100.00018.64
8.1.160.0050.00321.86
8.1.150.0030.00518.89
8.1.140.0030.00517.48
8.1.130.0030.00317.74
8.1.120.0070.00017.46
8.1.110.0040.00417.52
8.1.100.0040.00417.47
8.1.90.0040.00417.47
8.1.80.0040.00417.58
8.1.70.0030.00317.54
8.1.60.0000.00817.49
8.1.50.0060.00317.62
8.1.40.0000.00817.58
8.1.30.0000.00817.63
8.1.20.0060.00317.60
8.1.10.0050.00217.54
8.1.00.0070.00417.68
8.0.300.0030.00618.77
8.0.290.0040.00417.00
8.0.280.0040.00418.47
8.0.270.0040.00417.37
8.0.260.0030.00317.34
8.0.250.0040.00417.17
8.0.240.0030.00517.13
8.0.230.0070.00016.97
8.0.220.0030.00317.05
8.0.210.0000.00817.03
8.0.200.0070.00017.13
8.0.190.0070.00016.99
8.0.180.0070.00017.08
8.0.170.0040.00416.98
8.0.160.0070.00016.95
8.0.150.0040.00417.01
8.0.140.0000.00716.93
8.0.130.0030.00513.38
8.0.120.0000.00816.89
8.0.110.0000.00817.02
8.0.100.0000.00716.89
8.0.90.0050.00317.14
8.0.80.0030.01217.02
8.0.70.0050.00217.03
8.0.60.0040.00416.88
8.0.50.0040.00416.91
8.0.30.0120.01217.29
8.0.20.0080.01517.40
8.0.10.0070.00017.04
8.0.00.0080.00916.87
7.4.330.0000.00615.13
7.4.320.0000.00616.57
7.4.300.0080.00016.59
7.4.290.0040.00416.48
7.4.280.0050.00216.63
7.4.270.0000.00716.57
7.4.260.0060.00516.56
7.4.250.0070.00016.66
7.4.240.0050.00216.67
7.4.230.0070.00016.66
7.4.220.0070.01116.68
7.4.210.0090.01316.52
7.4.200.0030.00316.46
7.4.160.0100.00616.57
7.4.150.0160.01317.40
7.4.140.0130.00617.86
7.4.130.0120.00716.71
7.4.120.0080.00816.57
7.4.110.0110.00616.52
7.4.100.0140.00716.65
7.4.90.0100.00716.72
7.4.80.0140.00819.39
7.4.70.0120.00916.64
7.4.60.0030.01316.50
7.4.50.0040.00516.33
7.4.40.0170.00416.41
7.4.30.0130.00316.79
7.4.00.0060.00914.83
7.3.330.0050.00013.19
7.3.320.0000.00513.10
7.3.310.0000.00716.13
7.3.300.0040.00316.27
7.3.290.0070.00816.30
7.3.280.0100.00916.25
7.3.270.0060.01217.40
7.3.260.0140.00316.59
7.3.250.0140.00516.48
7.3.240.0060.01216.41
7.3.230.0130.00616.58
7.3.210.0060.01016.26
7.3.200.0050.01619.39
7.3.190.0030.01216.31
7.3.180.0130.00716.28
7.3.170.0070.01016.32
7.3.160.0080.00816.45
7.3.10.0070.00716.60
7.3.00.0030.01416.66
7.2.330.0140.00316.87
7.2.320.0030.01616.78
7.2.310.0100.00716.75
7.2.300.0130.00516.67
7.2.290.0070.01616.79
7.2.130.0070.01017.01
7.2.120.0030.01017.04
7.2.110.0040.00916.99
7.2.100.0070.00716.89
7.2.90.0070.00716.82
7.2.80.0060.00917.02
7.2.70.0040.00717.10
7.2.60.0080.00816.89
7.2.50.0120.00316.75
7.2.40.0060.00916.88
7.2.30.0060.00617.15
7.2.20.0070.00316.77
7.2.10.0030.00716.66
7.2.00.0150.00017.20
7.1.250.0040.00415.76
7.1.200.0000.00815.66
7.1.70.0000.00717.29
7.1.60.0070.00719.46
7.1.50.0140.01117.00
7.1.00.0070.07322.42
7.0.200.0040.00815.13
7.0.140.0000.06021.95
7.0.60.0130.07320.03
7.0.50.0030.08317.79
7.0.40.0030.06320.30
7.0.30.0100.05020.21
7.0.20.0300.07720.19
7.0.10.0030.04720.09
7.0.00.0070.04020.04
5.6.210.0100.03720.74
5.6.200.0000.04718.12
5.6.190.0030.07320.47
5.6.180.3030.04020.41
5.6.170.0370.04320.28
5.6.160.0030.04320.41
5.6.150.0030.08018.18
5.6.140.0100.07018.17
5.6.130.0130.06718.22
5.6.120.0100.06021.14
5.6.110.0170.07720.98
5.6.100.0030.06720.98
5.6.90.0130.07720.87
5.6.80.0070.06320.50
5.6.70.4370.03320.28
5.5.350.0400.06320.36
5.5.340.0030.04018.01
5.5.330.0100.04720.15
5.5.320.0230.07320.20
5.5.310.0330.08020.17
5.5.300.0030.04017.91
5.5.290.0070.05317.97
5.5.280.0100.06720.84
5.5.270.0070.04020.79
5.5.260.0170.06720.86
5.5.250.0030.08020.68
5.5.240.0370.05720.18
5.4.450.0600.06719.52
5.4.440.0530.05319.47
5.4.430.0130.07719.51
5.4.420.0130.06319.45
5.4.410.0100.05319.40
5.4.400.0100.05319.23
5.4.390.0300.04318.48
5.4.380.0230.05018.52
5.4.370.0170.07018.66
5.4.360.0330.03718.55
5.4.350.0200.05718.52
5.4.340.0200.07318.68
5.4.320.0270.07018.48
5.4.310.0300.04018.72
5.4.300.0100.06718.60
5.4.290.0130.05718.50
5.4.280.0230.05018.59
5.4.270.0230.05318.68
5.4.260.0230.04718.77
5.4.250.0170.07018.53
5.4.240.0270.06718.73
5.4.230.0270.06318.51
5.4.220.0300.06318.45
5.4.210.0470.07018.59
5.4.200.0330.06016.67
5.4.190.0270.07018.51
5.4.180.0330.07018.70
5.4.170.0200.07718.66
5.4.160.0270.06718.59
5.4.150.0300.06718.56
5.4.140.0230.07316.34
5.4.130.0270.06716.11
5.4.120.0270.07016.40
5.4.110.0270.05016.31
5.4.100.0200.05716.06
5.4.90.0200.05316.11
5.4.80.0300.04316.25
5.4.70.0200.05716.27
5.4.60.0270.05016.23
5.4.50.0170.05316.27
5.4.40.0230.05016.15
5.4.30.0170.05316.23
5.4.20.0200.05316.15
5.4.10.0270.04716.23
5.4.00.0130.06015.77
5.3.290.0270.05714.76
5.3.280.0170.06014.55
5.3.270.0200.05714.61
5.3.260.0300.04714.51
5.3.250.0230.05014.58
5.3.240.0400.03714.53
5.3.230.0100.06314.66
5.3.220.0270.05014.48
5.3.210.0230.05714.71
5.3.200.0270.04714.52
5.3.190.0300.05014.63
5.3.180.0330.04314.64
5.3.170.0270.05714.54
5.3.160.0130.06314.49
5.3.150.0130.06014.47
5.3.140.0200.05014.53
5.3.130.0170.06014.54
5.3.120.0230.05314.64
5.3.110.0200.05314.54
5.3.100.0100.06314.19
5.3.90.0200.05313.93
5.3.80.0200.05013.95
5.3.70.0230.05314.17
5.3.60.0270.04713.91
5.3.50.0200.05713.95
5.3.40.0230.05313.98
5.3.30.0170.05713.90
5.3.20.0230.05713.66
5.3.10.0270.04713.62
5.3.00.0200.05013.55
5.2.170.0130.06011.16
5.2.160.0170.05711.20
5.2.150.0200.05011.11
5.2.140.0270.04311.09
5.2.130.0170.05011.05
5.2.120.0100.04711.08
5.2.110.0230.03311.01
5.2.100.0170.04011.16
5.2.90.0230.05011.04
5.2.80.0230.03311.06
5.2.70.0200.04311.14
5.2.60.0070.05011.22
5.2.50.0130.04011.05
5.2.40.0130.03711.04
5.2.30.0070.06710.96
5.2.20.0130.05010.99
5.2.10.0170.04710.98
5.2.00.0130.05010.76
5.1.60.0100.0379.98
5.1.50.0100.03310.11
5.1.40.0130.0309.96
5.1.30.0070.04010.30
5.1.20.0070.04310.37
5.1.10.0100.03310.20
5.1.00.0130.03010.18
5.0.50.0130.0238.69
5.0.40.0130.0208.47
5.0.30.0070.0438.29
5.0.20.0100.0338.21
5.0.10.0100.0278.36
5.0.00.0100.0408.29
4.4.90.0070.0235.93
4.4.80.0100.0175.89
4.4.70.0100.0175.93
4.4.60.0070.0205.90
4.4.50.0100.0235.90
4.4.40.0100.0405.89
4.4.30.0070.0305.87
4.4.20.0100.0235.94
4.4.10.0100.0175.97
4.4.00.0030.0375.89
4.3.110.0130.0205.85
4.3.100.0100.0235.83
4.3.90.0030.0335.80
4.3.80.0030.0435.80
4.3.70.0000.0305.79
4.3.60.0070.0205.79
4.3.50.0030.0335.81
4.3.40.0100.0335.74
4.3.30.0030.0234.63
4.3.20.0000.0374.54
4.3.10.0030.0274.53
4.3.00.0200.0179.16

preferences:
46.97 ms | 401 KiB | 5 Q