3v4l.org

run code in 300+ PHP versions simultaneously
<?php print "New Changes:\n"; $before = new DateTime('2014-10-26 01:00:00', new DateTimeZone('Europe/Moscow')); print $before->format(DateTime::ATOM)."\n"; $before->modify('+ 4 hours'); print $before->format(DateTime::ATOM)."\n"; print "Old Changes:\n"; $before = new DateTime('2011-03-27 00:50:00', new DateTimeZone('Europe/Moscow')); print $before->format(DateTime::ATOM)."\n"; $before->modify('+ 4 hours'); print $before->format(DateTime::ATOM)."\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.3.60.0060.01218.39
8.3.50.0120.00821.28
8.3.40.0170.00318.96
8.3.30.0030.01019.08
8.3.20.0070.00020.38
8.3.10.0040.00423.51
8.3.00.0100.00017.75
8.2.180.0110.00316.63
8.2.170.0070.00722.96
8.2.160.0140.00020.50
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00822.33
8.2.110.0060.00320.29
8.2.100.0060.00618.22
8.2.90.0000.00819.31
8.2.80.0000.00917.97
8.2.70.0000.00817.88
8.2.60.0030.00617.91
8.2.50.0000.00818.07
8.2.40.0000.00918.33
8.2.30.0000.00818.11
8.2.20.0000.00717.94
8.2.10.0040.00418.18
8.2.00.0050.00317.81
8.1.280.0130.00725.92
8.1.270.0060.01324.01
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00024.00
8.1.230.0080.00419.13
8.1.220.0080.00017.79
8.1.210.0040.00418.77
8.1.200.0030.00717.60
8.1.190.0000.00817.48
8.1.180.0000.00718.10
8.1.170.0050.00318.76
8.1.160.0040.00422.13
8.1.150.0040.00419.02
8.1.140.0070.00017.71
8.1.130.0000.00717.92
8.1.120.0050.00217.66
8.1.110.0080.00017.69
8.1.100.0040.00417.61
8.1.90.0040.00417.60
8.1.80.0000.00717.74
8.1.70.0050.00317.59
8.1.60.0030.00617.68
8.1.50.0080.00017.71
8.1.40.0030.00617.74
8.1.30.0080.00017.77
8.1.20.0000.00817.82
8.1.10.0000.00817.76
8.1.00.0080.00017.75
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0000.00718.57
8.0.270.0040.00417.31
8.0.260.0030.00617.33
8.0.250.0030.00317.13
8.0.240.0000.00717.12
8.0.230.0000.00717.32
8.0.220.0030.00317.06
8.0.210.0080.00017.20
8.0.200.0070.00017.19
8.0.190.0020.00517.34
8.0.180.0050.00317.31
8.0.170.0000.00917.24
8.0.160.0040.00417.13
8.0.150.0040.00417.00
8.0.140.0000.00717.17
8.0.130.0050.00013.61
8.0.120.0030.00517.15
8.0.110.0080.00017.11
8.0.100.0030.00617.03
8.0.90.0000.00717.09
8.0.80.0040.01217.11
8.0.70.0040.00417.05
8.0.60.0070.00017.17
8.0.50.0040.00416.96
8.0.30.0070.01217.17
8.0.20.0160.00817.40
8.0.10.0050.00217.23
8.0.00.0110.00917.04
7.4.330.0000.00515.00
7.4.320.0000.00716.64
7.4.300.0000.00616.54
7.4.290.0000.00716.75
7.4.280.0070.00016.71
7.4.270.0000.00716.75
7.4.260.0090.00016.77
7.4.250.0040.00416.51
7.4.240.0040.00316.67
7.4.230.0040.00416.64
7.4.220.0150.00916.77
7.4.210.0040.00916.57
7.4.200.0050.00216.84
7.4.160.0060.01016.71
7.4.150.0140.00317.40
7.4.140.0100.00817.86
7.4.130.0180.00016.64
7.4.120.0080.01116.68
7.4.110.0150.00616.68
7.4.100.0120.00616.68
7.4.90.0000.01616.73
7.4.80.0100.01319.39
7.4.70.0060.01216.57
7.4.60.0090.00616.71
7.4.50.0000.00816.68
7.4.40.0070.01216.48
7.4.30.0080.01416.57
7.4.00.0070.00714.86
7.3.330.0060.00013.32
7.3.320.0030.00313.35
7.3.310.0030.00316.34
7.3.300.0040.00416.45
7.3.290.0110.00616.41
7.3.280.0080.00816.44
7.3.270.0130.00317.40
7.3.260.0030.01316.46
7.3.240.0130.01316.52
7.3.230.0080.01216.39
7.3.210.0130.00616.61
7.3.200.0100.01219.39
7.3.190.0110.00616.45
7.3.180.0130.00316.55
7.3.170.0070.01016.80
7.3.160.0100.00616.88
7.2.330.0070.01117.13
7.2.320.0080.00917.09
7.2.310.0060.01316.54
7.2.300.0100.00716.66
7.2.290.0060.01817.09
7.2.00.0040.00819.65
7.1.100.0060.00618.48
7.1.70.0000.00717.29
7.1.60.0160.00919.32
7.1.50.0150.00616.94
7.1.00.0000.08022.45
7.0.200.0000.00916.60
7.0.140.0030.07721.91
7.0.60.0070.08319.95
7.0.50.0070.05017.90
7.0.40.0000.04720.20
7.0.30.0370.06720.21
7.0.20.0230.08020.17
7.0.10.0100.04020.30
7.0.00.0070.08320.01
5.6.280.0070.08721.04
5.6.210.0100.08320.69
5.6.200.0030.05718.23
5.6.190.0130.03720.49
5.6.180.0330.08020.37
5.6.170.0270.07720.61
5.6.160.0170.07020.71
5.6.150.0030.04018.09
5.6.140.0030.06718.21
5.6.130.0100.07018.19
5.6.120.0070.08320.88
5.6.110.0000.05021.04
5.6.100.0200.06721.13
5.6.90.0100.08021.03
5.6.80.0100.07320.35
5.5.350.0070.09020.53
5.5.340.0070.05318.02
5.5.330.0070.04020.40
5.5.320.0430.07020.29
5.5.310.0230.07720.12
5.5.300.0070.04717.91
5.5.290.0030.07317.95
5.5.280.0030.08020.87
5.5.270.0100.08720.77
5.5.260.0130.05020.95
5.5.250.0000.09020.70
5.5.240.0200.07720.12
5.4.450.0570.06319.41
5.4.440.0800.05719.43
5.4.430.0900.05319.12
5.4.420.0770.00019.42
5.4.410.0670.00019.32
5.4.400.0630.00019.03
5.4.390.0600.00019.18
5.4.380.0630.00019.07
5.4.370.0600.00019.15
5.4.360.0600.00019.16
5.4.350.0670.00019.14
5.4.340.0050.03611.97
5.4.320.0100.03912.45
5.4.310.0050.04412.45
5.4.300.0050.04512.46
5.4.290.0040.04312.45
5.4.280.0060.04212.35
5.4.270.0110.03612.35
5.4.260.0100.03612.35
5.4.250.0050.04012.35
5.4.240.0090.03412.35
5.4.230.0060.03912.34
5.4.220.0060.04212.34
5.4.210.0060.03612.34
5.4.200.0110.03412.34
5.4.190.0060.03712.34
5.4.180.0120.03712.34
5.4.170.0110.03612.35
5.4.160.0060.03612.35
5.4.150.0080.03712.34
5.4.140.0100.03712.03
5.4.130.0080.03612.02
5.4.120.0060.03711.97
5.4.110.0070.03611.97
5.4.100.0090.03911.96
5.4.90.0040.04111.97
5.4.80.0100.03611.97
5.4.70.0050.03811.96
5.4.60.0090.04811.97
5.4.50.0090.05411.96
5.4.40.0120.05111.95
5.4.30.0080.04211.95
5.4.20.0110.03711.95
5.4.10.0030.03911.95
5.4.00.0070.03511.44
5.3.290.0060.04312.80
5.3.280.0060.03712.71
5.3.270.0110.03512.72
5.3.260.0100.03712.72
5.3.250.0080.03512.71
5.3.240.0100.04112.71
5.3.230.0080.03812.71
5.3.220.0050.03912.68
5.3.210.0110.04512.68
5.3.200.0060.04312.68
5.3.190.0040.04212.68
5.3.180.0060.04012.67
5.3.170.0100.04012.67
5.3.160.0100.03712.68
5.3.150.0060.04612.68
5.3.140.0120.03812.66
5.3.130.0050.04112.66
5.3.120.0070.04212.65
5.3.110.0070.04012.66
5.3.100.0090.03712.12
5.3.90.0060.04012.09
5.3.80.0060.03712.08
5.3.70.0070.03612.07
5.3.60.0100.03312.06
5.3.50.0090.03512.00
5.3.40.0100.03512.00
5.3.30.0090.03411.95
5.3.20.0090.03511.73
5.3.10.0080.04911.69
5.3.00.0120.03711.68
5.2.170.0040.0329.18
5.2.160.0040.0319.19
5.2.150.0080.0329.18
5.2.140.0100.0359.18
5.2.130.0080.0439.14
5.2.120.0070.0279.14
5.2.110.0040.0329.14
5.2.100.0050.0299.15
5.2.90.0090.0389.14
5.2.80.0040.0329.14
5.2.70.0030.0439.14
5.2.60.0080.0429.09
5.2.50.0060.0469.06
5.2.40.0110.0359.04
5.2.30.0050.0319.02
5.2.20.0160.0319.00
5.2.10.0050.0378.93
5.2.00.0050.0358.79
5.1.60.0050.0248.07
5.1.50.0050.0248.06
5.1.40.0050.0258.05
5.1.30.0040.0278.39
5.1.20.0060.0258.41
5.1.10.0050.0288.14
5.1.00.0050.0348.14
5.0.50.0070.0216.63
5.0.40.0050.0236.48
5.0.30.0050.0366.30
5.0.20.0030.0226.28
5.0.10.0030.0206.25
5.0.00.0050.0306.24
4.4.90.0040.0144.78
4.4.80.0040.0164.75
4.4.70.0020.0164.76
4.4.60.0040.0144.75
4.4.50.0030.0164.77
4.4.40.0040.0254.71
4.4.30.0040.0164.76
4.4.20.0050.0184.85
4.4.10.0040.0174.85
4.4.00.0060.0244.76
4.3.110.0050.0164.67
4.3.100.0030.0154.67
4.3.90.0040.0144.63
4.3.80.0070.0204.58
4.3.70.0060.0124.63
4.3.60.0030.0144.63
4.3.50.0020.0164.63
4.3.40.0050.0224.54
4.3.30.0000.0223.28
4.3.20.0020.0163.27
4.3.10.0020.0153.22
4.3.00.0130.0207.03

preferences:
37.82 ms | 401 KiB | 5 Q