3v4l.org

run code in 300+ PHP versions simultaneously
<?php $then = '2005-09-01 09:02:23'; $then = new DateTime($then); $now = new DateTime(); $sinceThen = $then->diff($now); //Combined echo $sinceThen->y.' years have passed.<br>'; echo $sinceThen->m.' months have passed.<br>'; echo $sinceThen->d.' days have passed.<br>'; echo $sinceThen->h.' hours have passed.<br>'; echo $sinceThen->i.' minutes have passed.<br>';

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.00716.38
8.3.50.0130.00721.15
8.3.40.0030.01218.98
8.3.30.0070.00718.97
8.3.20.0070.00020.21
8.3.10.0000.00723.61
8.3.00.0040.00419.38
8.2.180.0070.00718.26
8.2.170.0100.00322.96
8.2.160.0110.00322.26
8.2.150.0070.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00617.75
8.2.110.0130.00322.13
8.2.100.0090.00318.05
8.2.90.0000.00819.17
8.2.80.0060.00317.97
8.2.70.0050.00317.75
8.2.60.0000.00818.16
8.2.50.0060.00318.07
8.2.40.0040.00419.45
8.2.30.0040.00420.67
8.2.20.0000.00817.87
8.2.10.0000.00818.00
8.2.00.0090.00018.18
8.1.280.0140.00725.92
8.1.270.0040.00423.92
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0090.00022.54
8.1.230.0100.00317.77
8.1.220.0000.00917.74
8.1.210.0040.00818.77
8.1.200.0040.00417.63
8.1.190.0000.00817.48
8.1.180.0000.00818.10
8.1.170.0040.00418.78
8.1.160.0030.00322.01
8.1.150.0040.00419.00
8.1.140.0040.00419.68
8.1.130.0070.00017.69
8.1.120.0070.00017.55
8.1.110.0000.00717.55
8.1.100.0000.00817.64
8.1.90.0050.00217.57
8.1.80.0000.00817.69
8.1.70.0030.00317.53
8.1.60.0080.00017.55
8.1.50.0030.00617.62
8.1.40.0040.00417.59
8.1.30.0080.00017.67
8.1.20.0040.00417.77
8.1.10.0040.00417.71
8.1.00.0040.00417.67
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0030.00318.51
8.0.270.0030.00317.33
8.0.260.0040.00417.36
8.0.250.0070.00017.05
8.0.240.0030.00317.16
8.0.230.0000.00717.14
8.0.220.0030.00317.05
8.0.210.0000.00717.10
8.0.200.0000.00617.12
8.0.190.0000.00817.16
8.0.180.0000.00717.13
8.0.170.0040.00417.02
8.0.160.0000.00717.00
8.0.150.0040.00417.09
8.0.140.0070.00017.01
8.0.130.0030.00313.43
8.0.120.0040.00417.05
8.0.110.0040.00417.14
8.0.100.0080.00016.96
8.0.90.0000.00816.89
8.0.80.0000.01417.06
8.0.70.0040.00416.99
8.0.60.0000.00816.90
8.0.50.0000.00717.09
8.0.30.0100.00617.23
8.0.20.0120.00717.40
8.0.10.0040.00417.00
8.0.00.0100.00716.98
7.4.330.0030.00315.09
7.4.320.0030.00316.50
7.4.300.0070.00016.71
7.4.290.0030.00316.68
7.4.280.0030.00516.61
7.4.270.0030.00516.57
7.4.260.0030.00316.55
7.4.250.0050.00216.50
7.4.240.0020.00616.58
7.4.230.0030.00316.58
7.4.220.0110.00616.70
7.4.210.0000.01516.56
7.4.200.0030.00316.48
7.4.160.0160.00016.77
7.4.150.0120.00617.40
7.4.140.0120.00717.86
7.4.130.0130.00316.53
7.4.120.0100.00716.60
7.4.110.0100.00716.56
7.4.100.0150.00916.72
7.4.90.0130.00316.73
7.4.80.0100.01019.39
7.4.70.0060.01016.41
7.4.60.0070.01016.58
7.4.50.0030.00516.72
7.4.40.0100.00716.84
7.4.30.0060.01316.80
7.4.00.0030.01114.87
7.3.330.0030.00313.11
7.3.320.0020.00313.16
7.3.310.0070.00016.40
7.3.300.0000.00716.32
7.3.290.0090.00716.33
7.3.280.0080.01116.31
7.3.270.0070.01017.40
7.3.260.0180.00016.57
7.3.250.0120.00716.54
7.3.240.0090.00916.37
7.3.230.0100.00716.57
7.3.210.0080.00816.50
7.3.200.0110.00816.64
7.3.190.0100.01016.57
7.3.180.0090.01516.54
7.3.170.0090.00616.37
7.3.160.0060.00916.56
7.3.120.0060.01014.94
7.3.110.0040.01415.12
7.3.100.0040.01415.05
7.3.90.0030.01314.87
7.3.80.0090.00614.88
7.3.70.0110.00414.88
7.3.60.0150.00014.61
7.3.50.0000.01614.98
7.3.40.0070.00714.75
7.3.30.0030.01314.85
7.3.20.0130.00016.55
7.3.10.0030.01216.73
7.3.00.0090.00616.63
7.2.330.0090.00916.60
7.2.320.0140.00716.70
7.2.310.0060.01016.74
7.2.300.0140.00416.80
7.2.290.0030.01517.05
7.2.250.0090.00914.95
7.2.240.0170.00314.81
7.2.230.0090.01315.30
7.2.220.0030.01015.21
7.2.210.0110.00415.04
7.2.200.0030.01015.13
7.2.190.0080.00815.19
7.2.180.0070.00715.14
7.2.170.0080.00815.39
7.2.60.0000.00816.94
7.1.330.0000.01616.07
7.1.320.0030.01215.77
7.1.310.0080.00415.97
7.1.300.0030.01416.05
7.1.290.0030.01015.78
7.1.280.0040.00815.80
7.1.270.0090.00315.86
7.1.260.0100.00315.68
7.1.200.0060.00615.91
7.1.70.0060.00617.36
7.1.60.0130.01019.43
7.1.50.0000.01517.11
7.1.00.0000.08022.45
7.0.200.0080.00415.02
7.0.60.0030.04019.95
7.0.50.0100.07017.82
7.0.40.0100.07020.20
7.0.30.0030.08320.09
7.0.20.0200.07020.31
7.0.10.0100.08720.04
7.0.00.0030.04720.11
5.6.280.0030.07320.90
5.6.210.0100.07720.46
5.6.200.0100.07718.12
5.6.190.0030.04320.39
5.6.180.0400.06020.49
5.6.170.0270.06020.50
5.6.160.0070.07720.54
5.6.150.0100.08018.18
5.6.140.0130.07318.07
5.6.130.0030.09018.09
5.6.120.0130.08021.00
5.6.110.0130.06021.04
5.6.100.0200.06021.10
5.6.90.0000.04320.95
5.6.80.0070.08320.38
5.5.350.0330.06320.44
5.5.340.0030.06017.88
5.5.330.0070.05020.15
5.5.320.0130.09720.29
5.5.310.0300.06720.20
5.5.300.0070.03717.98
5.5.290.0030.09017.87
5.5.280.0130.08020.71
5.5.270.0000.04320.76
5.5.260.0030.08720.75
5.5.250.0030.08320.58
5.5.240.0030.07720.18
5.4.450.0100.06319.33
5.4.440.0170.08319.13
5.4.430.0200.05019.24
5.4.420.0270.05719.49
5.4.410.0170.06319.14
5.4.400.0270.05019.10
5.4.390.0200.05719.27
5.4.380.0400.04319.16
5.4.370.0200.06319.14
5.4.360.0200.06019.19
5.4.350.0230.06019.19
5.4.340.0170.05719.22
5.4.320.0070.06719.12
5.4.310.0170.05718.99
5.4.300.0300.04718.80
5.4.290.0230.04719.15
5.4.280.0170.05319.31
5.4.270.0200.04718.91
5.4.260.0200.04718.99
5.4.250.0100.06019.08
5.4.240.0200.06719.30
5.4.230.0230.05019.13
5.4.220.0200.05019.30
5.4.210.0300.04719.13
5.4.200.0100.06018.94
5.4.190.0200.06718.98
5.4.180.0300.05719.13
5.4.170.0200.05319.21
5.4.160.0100.05719.07
5.4.150.0270.05019.29
5.4.140.0270.06016.49
5.4.130.0100.05716.48
5.4.120.0170.05016.41
5.4.110.0230.06716.52
5.4.100.0200.05716.34
5.4.90.0200.04716.50
5.4.80.0230.04316.50
5.4.70.0200.05016.50
5.4.60.0170.06716.53
5.4.50.0100.05716.38
5.4.40.0170.05016.44
5.4.30.0170.05016.48
5.4.20.0270.04016.49
5.4.10.0300.06716.44
5.4.00.0100.05715.95

preferences:
64.67 ms | 401 KiB | 5 Q