3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dayAfterTomorrow = (new \DateTime())->add(new \DateInterval('P2D')); echo $dayAfterTomorrow->format('d m Y'); $a = new \DateTime('tomorrow +2day'); echo $a->format('d m Y');

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.0170.00318.55
8.3.50.0130.00321.98
8.3.40.0110.00418.79
8.3.30.0130.01018.79
8.3.20.0030.00518.77
8.3.10.0000.00821.14
8.3.00.0000.00819.56
8.2.180.0150.00616.63
8.2.170.0130.00622.96
8.2.160.0100.00320.27
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00721.09
8.2.110.0040.00420.27
8.2.100.0110.00017.97
8.2.90.0050.00519.39
8.2.80.0000.00917.97
8.2.70.0000.00817.88
8.2.60.0030.00618.16
8.2.50.0100.00018.07
8.2.40.0080.00018.16
8.2.30.0050.00321.37
8.2.20.0050.00318.02
8.2.10.0080.00017.80
8.2.00.0030.00917.81
8.1.280.0130.00325.92
8.1.270.0050.00223.99
8.1.260.0130.00326.35
8.1.250.0050.00328.09
8.1.240.0090.00022.59
8.1.230.0110.00020.98
8.1.220.0030.00518.77
8.1.210.0000.00918.96
8.1.200.0000.01117.48
8.1.190.0040.00417.52
8.1.180.0040.00418.10
8.1.170.0040.00418.70
8.1.160.0030.00618.91
8.1.150.0040.00418.83
8.1.140.0000.00717.64
8.1.130.0070.00017.80
8.1.120.0030.00317.67
8.1.110.0040.00417.61
8.1.100.0030.00517.61
8.1.90.0000.00717.62
8.1.80.0030.00317.70
8.1.70.0000.00717.63
8.1.60.0040.00417.63
8.1.50.0050.00317.50
8.1.40.0030.00517.50
8.1.30.0000.00817.73
8.1.20.0030.00517.74
8.1.10.0040.00417.82
8.1.00.0080.00017.69
8.0.300.0040.00419.97
8.0.290.0030.00617.30
8.0.280.0030.00318.59
8.0.270.0070.00017.39
8.0.260.0000.00617.14
8.0.250.0000.00717.12
8.0.240.0000.00817.24
8.0.230.0000.00817.06
8.0.220.0030.00316.96
8.0.210.0030.00317.05
8.0.200.0030.00317.15
8.0.190.0030.00617.17
8.0.180.0040.00417.06
8.0.170.0000.00717.11
8.0.160.0040.00417.12
8.0.150.0000.00817.02
8.0.140.0050.00217.08
8.0.130.0030.00313.46
8.0.120.0050.00316.93
8.0.110.0040.00417.04
8.0.100.0080.00017.04
8.0.90.0080.00017.14
8.0.80.0070.01717.12
8.0.70.0040.00417.18
8.0.60.0000.00717.04
8.0.50.0070.00016.91
8.0.30.0110.00817.14
8.0.20.0090.00917.40
8.0.10.0080.00017.25
8.0.00.0070.01017.05
7.4.330.0050.00016.80
7.4.320.0000.00716.75
7.4.300.0000.00716.64
7.4.290.0030.00316.55
7.4.280.0040.00416.54
7.4.270.0070.00016.71
7.4.260.0060.00013.27
7.4.250.0040.00416.68
7.4.240.0000.00716.73
7.4.230.0040.00416.48
7.4.220.0030.01716.67
7.4.210.0090.00716.67
7.4.200.0000.00716.48
7.4.190.0070.00016.59
7.4.160.0060.00916.55
7.4.150.0100.00717.40
7.4.140.0090.01017.86
7.4.130.0140.00716.72
7.4.120.0080.01016.60
7.4.110.0110.00916.60
7.4.100.0140.00316.66
7.4.90.0090.01516.83
7.4.80.0130.00419.39
7.4.70.0070.01416.71
7.4.60.0080.00816.67
7.4.50.0000.00816.66
7.4.40.0060.01022.77
7.4.30.0120.00916.66
7.4.00.0110.00515.18
7.3.330.0040.00413.17
7.3.320.0000.00513.22
7.3.310.0030.00316.31
7.3.300.0060.00016.32
7.3.290.0060.01116.38
7.3.280.0110.00716.32
7.3.270.0070.01017.40
7.3.260.0100.01218.24
7.3.250.0130.00416.57
7.3.240.0080.00816.78
7.3.230.0070.01016.39
7.3.210.0110.00716.45
7.3.200.0110.00919.39
7.3.190.0070.01516.62
7.3.180.0060.00916.60
7.3.170.0090.01316.60
7.3.160.0080.00816.51
7.3.120.0050.01315.08
7.3.110.0040.01015.02
7.3.100.0100.00714.90
7.3.90.0060.00814.94
7.3.80.0060.00814.91
7.3.70.0050.00814.90
7.3.60.0070.00714.77
7.3.50.0100.00514.89
7.3.40.0030.01014.89
7.3.30.0090.00014.83
7.3.20.0050.00716.89
7.3.10.0110.00416.71
7.3.00.0020.01016.59
7.2.330.0080.01116.87
7.2.320.0170.00016.96
7.2.310.0120.00616.65
7.2.300.0090.01516.61
7.2.290.0140.00316.67
7.2.250.0000.01915.13
7.2.240.0030.01315.22
7.2.230.0070.00715.28
7.2.220.0000.01215.14
7.2.210.0070.00715.23
7.2.200.0090.00415.32
7.2.190.0030.01215.11
7.2.180.0050.00815.24
7.2.170.0050.00915.20
7.2.160.0100.00315.39
7.2.150.0120.00617.11
7.2.140.0080.01117.23
7.2.130.0060.00817.03
7.2.120.0060.00917.10
7.2.110.0070.00717.13
7.2.100.0090.00416.96
7.2.90.0050.01016.95
7.2.80.0040.01017.00
7.2.70.0090.00617.03
7.2.60.0040.01017.06
7.2.50.0060.00516.94
7.2.40.0070.00417.19
7.2.30.0030.00916.94
7.2.20.0060.00616.98
7.2.10.0030.01117.14
7.2.00.0050.00618.02
7.1.330.0070.00715.60
7.1.320.0080.00515.71
7.1.310.0060.00815.76
7.1.300.0050.01015.73
7.1.290.0040.00715.78
7.1.280.0080.00315.75
7.1.270.0040.00615.95
7.1.260.0090.00715.94
7.1.250.0090.00715.75
7.1.200.0180.00215.81
7.1.100.0030.01017.83
7.1.70.0050.00217.12
7.1.60.0070.00317.21
7.1.50.0070.01116.88
7.1.40.0080.00316.53
7.1.30.0040.00716.72
7.1.20.0040.00816.69
7.1.10.0020.00516.71
7.1.00.0060.00316.85
7.0.200.0000.00717.01
7.0.190.0000.01416.78
7.0.180.0050.00516.23
7.0.170.0000.01116.27
7.0.160.0000.00816.38
7.0.150.0030.00616.11
7.0.140.0000.01516.43
7.0.130.0030.00516.46
7.0.120.0000.00916.60
7.0.110.0030.00616.50
7.0.100.0060.00616.55
7.0.90.0040.00716.38
7.0.80.0080.00316.39
7.0.70.0070.00316.33
7.0.60.0000.00716.14
7.0.50.0000.00716.22
7.0.40.0000.01315.79
7.0.30.0000.00815.79
7.0.20.0050.00515.79
7.0.10.0040.00415.79
7.0.00.0000.00715.79
5.6.300.0070.08320.80
5.6.290.0130.07620.57
5.6.280.0030.04821.00
5.6.270.0030.04120.86
5.6.260.0030.04620.90
5.6.250.0070.03921.05
5.6.240.0060.03920.89
5.6.230.0100.05120.78
5.6.220.0030.04220.91
5.6.210.0270.04720.99
5.6.200.0070.04220.72
5.6.190.0100.07820.73
5.6.180.0000.04920.85
5.6.170.0030.05420.82
5.6.160.0000.05020.95
5.6.150.0000.04420.81
5.6.140.0030.04520.98
5.6.130.0000.04320.95
5.6.120.0060.05120.97
5.6.110.0070.04220.72
5.6.100.0100.03720.75
5.6.90.0030.05021.00
5.6.80.0030.03920.41
5.6.70.0030.07720.10
5.6.60.0100.06920.39
5.6.50.0100.07720.30
5.6.40.0030.04420.34
5.6.30.0030.04220.20
5.6.20.0030.04020.40
5.6.10.0030.03920.19
5.6.00.0030.03820.15
5.5.380.0030.04417.48
5.5.370.0100.07617.48
5.5.360.0030.04517.55
5.5.350.0100.03317.55
5.5.340.0060.03917.95
5.5.330.0070.06218.06
5.5.320.0370.03717.95
5.5.310.0030.04917.98
5.5.300.0000.04218.05
5.5.290.0000.05417.96
5.5.280.0060.03917.96
5.5.270.0000.04318.08
5.5.260.0000.04317.93
5.5.250.0030.05517.81
5.5.240.0000.04017.09
5.5.230.0000.05217.37
5.5.220.0100.05717.32
5.5.210.0030.07917.23
5.5.200.0030.03817.42
5.5.190.0100.03817.29
5.5.180.0030.04317.35
5.5.160.0000.04017.21
5.5.150.0060.05817.46
5.5.140.0000.04117.37
5.5.130.0060.03617.37
5.5.120.0060.03517.37
5.5.110.0000.04017.08
5.5.100.0000.04817.25
5.5.90.0000.03917.22
5.5.80.0000.04017.25
5.5.70.0030.03917.27
5.5.60.0040.04217.21
5.5.50.0000.04117.35
5.5.40.0000.04317.30
5.5.30.0030.06417.21
5.5.20.0060.04417.10
5.5.10.0030.05617.35
5.5.00.0100.03917.09
5.4.450.0000.05019.18
5.4.440.0030.04019.43
5.4.430.0070.03419.46
5.4.420.0030.04619.46
5.4.410.0060.04119.21
5.4.400.0030.03719.14
5.4.390.0030.07119.16
5.4.380.0030.04018.89
5.4.370.0030.07719.04
5.4.360.0070.03518.87
5.4.350.0070.04119.07
5.4.340.0060.03618.93
5.4.320.0000.04119.07
5.4.310.0060.03518.83
5.4.300.0000.03919.04
5.4.290.0030.03518.88
5.4.280.0000.04418.91
5.4.270.0070.03618.94
5.4.260.0030.03718.88
5.4.250.0030.03619.06
5.4.240.0000.04319.00
5.4.230.0030.03818.97
5.4.220.0030.03819.09
5.4.210.0000.04418.98
5.4.200.0230.04018.93
5.4.190.0060.03519.01
5.4.180.0100.03219.16
5.4.170.0030.03718.87
5.4.160.0000.04319.04
5.4.150.0030.05318.86
5.4.140.0070.07216.64
5.4.130.0030.03816.48
5.4.120.0030.03616.56
5.4.110.0000.03716.56
5.4.100.0070.06616.47
5.4.90.0000.03816.47
5.4.80.0030.03316.67
5.4.70.0030.04716.68
5.4.60.0030.04316.64
5.4.50.0000.05916.55
5.4.40.0070.03416.56
5.4.30.0030.04316.54
5.4.20.0070.03016.47
5.4.10.0030.03616.54
5.4.00.0060.03216.04
5.3.290.0040.03515.79
5.3.280.0060.03215.79
5.3.270.0030.04715.79
5.3.260.0070.03915.79
5.3.250.0030.03915.79
5.3.240.0030.04415.79
5.3.230.0070.03615.79
5.3.220.0030.03515.79
5.3.210.0130.06615.79
5.3.200.0030.03515.79
5.3.190.0000.03815.79
5.3.180.0000.04015.79
5.3.170.0000.03915.79
5.3.160.0030.03815.79
5.3.150.0060.04115.79
5.3.140.0000.07415.79
5.3.130.0000.04715.79
5.3.120.0030.03615.79
5.3.110.0030.03915.79
5.3.100.0000.04415.79
5.3.90.0000.03915.79
5.3.80.0030.05515.79
5.3.70.0000.07915.79
5.3.60.0000.03915.79
5.3.50.0070.07015.79
5.3.40.0030.03415.79
5.3.30.0000.04015.79
5.3.20.0030.06315.79
5.3.10.0000.03915.79
5.3.00.0100.04915.79
5.2.170.0000.04815.79
5.2.160.0100.03015.79
5.2.150.0000.06115.79
5.2.140.0060.02615.79
5.2.130.0000.03015.79
5.2.120.0000.03015.79
5.2.110.0100.03915.79
5.2.100.0030.06515.79
5.2.90.0000.03015.79
5.2.80.0000.03215.79
5.2.70.0030.03015.79
5.2.60.0000.04715.79
5.2.50.0070.04115.79
5.2.40.0030.02615.79
5.2.30.0030.03515.79
5.2.20.0060.04815.79
5.2.10.0000.03015.79
5.2.00.0040.02915.79
5.1.60.0000.02915.79
5.1.50.0000.03015.79
5.1.40.0030.04315.79
5.1.30.0000.06015.79
5.1.20.0030.05715.79
5.1.10.0000.06015.79
5.1.00.0030.05915.79
5.0.50.0000.02715.79
5.0.40.0060.01515.79
5.0.30.0070.05915.79
5.0.20.0070.02715.79
5.0.10.0030.02715.79
5.0.00.0030.03815.79
4.4.90.0030.02715.79
4.4.80.0000.04215.79
4.4.70.0030.02215.79
4.4.60.0030.02115.79
4.4.50.0000.01615.79
4.4.40.0030.04315.79
4.4.30.0070.02215.79
4.4.20.0000.03515.79
4.4.10.0000.02515.79
4.4.00.0000.02715.79
4.3.110.0000.03015.79
4.3.100.0000.03715.79
4.3.90.0070.03115.79
4.3.80.0000.03715.79
4.3.70.0040.01415.79
4.3.60.0030.03615.79
4.3.50.0000.04215.79
4.3.40.0030.04215.79
4.3.30.0000.02515.79
4.3.20.0140.01815.79
4.3.10.0000.01715.79
4.3.00.0040.01915.79

preferences:
62.08 ms | 401 KiB | 5 Q