3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = new DateTime("second tuesday in two month"); //$c->add(new DateInterval('P1M')); echo $c->format('Y/m/d');

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.40.0140.00718.95
8.3.30.0040.01118.68
8.3.20.0070.00020.05
8.3.10.0000.00823.51
8.3.00.0040.00419.64
8.2.170.0120.00322.96
8.2.160.0070.00719.32
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00021.00
8.2.120.0000.00826.35
8.2.110.0100.00022.39
8.2.100.0090.00317.93
8.2.90.0040.00419.17
8.2.80.0080.00018.05
8.2.70.0030.00717.63
8.2.60.0040.00717.93
8.2.50.0080.00018.07
8.2.40.0030.00522.32
8.2.30.0070.00020.60
8.2.20.0000.00717.86
8.2.10.0030.00518.04
8.2.00.0000.00818.11
8.1.270.0080.00020.35
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00324.09
8.1.230.0070.00419.14
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00317.47
8.1.190.0040.00417.48
8.1.180.0000.00818.10
8.1.170.0050.00318.63
8.1.160.0000.00720.66
8.1.150.0080.00018.83
8.1.140.0040.00419.56
8.1.130.0040.00417.58
8.1.120.0030.00417.44
8.1.110.0050.00317.41
8.1.100.0000.00717.52
8.1.90.0050.00317.41
8.1.80.0040.00317.47
8.1.70.0000.00717.45
8.1.60.0080.00317.59
8.1.50.0090.00017.56
8.1.40.0040.00417.55
8.1.30.0050.00317.61
8.1.20.0000.00817.69
8.1.10.0040.00417.69
8.1.00.0040.00417.57
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0040.00418.40
8.0.270.0030.00317.32
8.0.260.0000.00617.11
8.0.250.0040.00417.04
8.0.240.0080.00017.18
8.0.230.0000.00717.12
8.0.220.0030.00517.13
8.0.210.0000.00917.07
8.0.200.0000.00717.12
8.0.190.0000.00817.03
8.0.180.0070.00017.06
8.0.170.0050.00317.01
8.0.160.0070.00016.97
8.0.150.0030.00517.01
8.0.140.0000.00716.93
8.0.130.0000.00613.39
8.0.120.0040.00417.00
8.0.110.0000.00717.04
8.0.100.0000.00716.93
8.0.90.0040.00416.97
8.0.80.0040.01117.11
8.0.70.0000.00717.04
8.0.60.0030.00516.98
8.0.50.0050.00217.11
8.0.30.0140.00317.11
8.0.20.0090.00917.40
8.0.10.0000.00817.10
8.0.00.0070.01216.80
7.4.330.0050.00016.80
7.4.320.0000.00616.55
7.4.300.0030.00316.46
7.4.290.0000.00816.62
7.4.280.0050.00216.57
7.4.270.0020.00516.52
7.4.260.0070.00016.62
7.4.250.0000.00716.58
7.4.240.0060.00116.63
7.4.230.0070.00016.41
7.4.220.0060.01216.53
7.4.210.0090.01116.57
7.4.200.0030.00316.38
7.4.160.0090.00616.46
7.4.150.0090.00917.40
7.4.140.0140.01017.86
7.4.130.0140.00716.55
7.4.120.0110.00716.50
7.4.110.0000.01716.79
7.4.100.0130.00316.61
7.4.90.0170.00016.75
7.4.80.0000.01719.39
7.4.70.0120.00416.70
7.4.60.0060.01016.62
7.4.50.0030.01316.66
7.4.40.0100.00716.73
7.4.30.0150.00616.77
7.4.10.0000.01615.25
7.4.00.0070.01015.15
7.3.330.0000.00513.12
7.3.320.0000.00813.26
7.3.310.0050.00216.39
7.3.300.0070.00016.43
7.3.290.0080.00016.43
7.3.280.0100.00816.41
7.3.270.0070.01017.40
7.3.260.0080.00816.54
7.3.250.0100.01016.55
7.3.240.0100.00816.45
7.3.230.0070.01016.66
7.3.210.0120.00916.57
7.3.200.0120.00616.47
7.3.190.0080.00616.51
7.3.180.0120.00416.49
7.3.170.0110.00816.53
7.3.160.0030.01716.61
7.3.130.0060.00614.72
7.3.120.0050.01215.01
7.3.110.0070.01114.98
7.3.100.0080.00514.97
7.3.90.0050.00714.97
7.3.80.0040.00614.95
7.3.70.0060.01014.82
7.3.60.0090.00614.86
7.3.50.0070.00815.07
7.3.40.0020.01515.05
7.3.30.0090.00514.83
7.3.20.0020.00916.72
7.3.10.0040.01116.56
7.3.00.0070.00816.62
7.2.330.0060.01216.46
7.2.320.0100.00716.54
7.2.310.0170.00716.61
7.2.300.0160.00016.54
7.2.290.0060.01616.70
7.2.260.0000.01514.96
7.2.250.0060.00915.10
7.2.240.0060.01115.27
7.2.230.0070.00715.18
7.2.220.0070.00415.21
7.2.210.0020.01215.24
7.2.200.0020.01015.14
7.2.190.0030.01015.07
7.2.180.0060.00814.96
7.2.170.0080.00314.96
7.2.160.0030.00615.15
7.2.150.0040.01116.95
7.2.140.0070.01016.93
7.2.130.0100.00416.71
7.2.120.0060.00716.92
7.2.110.0120.00416.72
7.2.100.0160.00416.72
7.2.90.0110.00716.93
7.2.80.0060.01116.74
7.2.70.0200.00516.89
7.2.60.0060.00916.91
7.2.50.0080.01016.98
7.2.40.0060.00916.81
7.2.30.0120.00716.85
7.2.20.0120.00516.65
7.2.10.0160.00716.92
7.2.00.0040.00817.70
7.1.330.0070.00915.59
7.1.320.0060.00315.75
7.1.310.0060.00515.68
7.1.300.0090.00815.75
7.1.290.0020.01115.57
7.1.280.0030.00915.84
7.1.270.0060.00815.73
7.1.260.0030.00815.86
7.1.250.0110.00415.45
7.1.240.0030.01015.80
7.1.230.0040.00915.73
7.1.220.0040.00415.73
7.1.210.0060.01015.91
7.1.200.0070.00715.82
7.1.190.0040.01115.73
7.1.180.0080.00415.89
7.1.170.0000.01415.65
7.1.160.0070.01015.57
7.1.150.0040.00715.38
7.1.140.0090.00615.48
7.1.130.0100.00715.80
7.1.120.0030.01015.76
7.1.110.0060.00915.84
7.1.100.0030.01016.85
7.1.90.0000.01415.82
7.1.80.0110.00715.85
7.1.70.0120.00716.41
7.1.60.0080.01217.69
7.1.50.0050.01116.29
7.1.40.0030.00715.86
7.1.30.0040.00715.78
7.1.20.0030.00615.62
7.1.10.0060.00315.82
7.1.00.0080.04018.96
7.0.330.0030.01015.36
7.0.320.0000.01315.23
7.0.310.0070.00715.34
7.0.300.0140.00015.39
7.0.290.0120.00615.43
7.0.280.0090.00615.49
7.0.270.0060.00615.16
7.0.260.0040.00715.24
7.0.250.0030.00515.34
7.0.240.0070.00715.45
7.0.230.0040.01415.43
7.0.220.0000.01015.69
7.0.210.0000.01715.25
7.0.200.0060.00616.00
7.0.190.0030.00715.48
7.0.180.0000.01115.31
7.0.170.0060.00315.48
7.0.160.0100.00015.53
7.0.150.0070.00715.51
7.0.140.0060.01015.11
7.0.130.0130.00315.53
7.0.120.0040.00415.37
7.0.110.0030.01315.36
7.0.100.0040.00715.50
7.0.90.0060.00615.48
7.0.80.0030.00515.14
7.0.70.0040.00815.59
7.0.60.0110.02817.62
7.0.50.0050.03916.65
7.0.40.0090.04416.89
7.0.30.0130.02516.84
7.0.20.0120.04216.63
7.0.10.0080.02316.71
7.0.00.0130.04016.84
5.6.400.0070.00714.11
5.6.390.0150.00014.61
5.6.380.0100.00314.34
5.6.370.0030.01014.27
5.6.360.0130.00614.13
5.6.350.0040.00414.37
5.6.340.0120.00614.26
5.6.330.0000.01314.29
5.6.320.0070.00714.52
5.6.310.0090.00614.20
5.6.300.0080.00314.26
5.6.290.0040.01114.34
5.6.280.0070.03717.63
5.6.270.0060.01214.43
5.6.260.0030.00714.11
5.6.250.0060.00314.24
5.6.240.0060.00614.12
5.6.230.0100.00714.36
5.6.220.0040.00414.50
5.6.210.0060.02317.50
5.6.200.0080.04216.21
5.6.190.0090.04517.45
5.6.180.0150.04417.42
5.6.170.0160.04417.51
5.6.160.0050.04717.46
5.6.150.0050.03416.18
5.6.140.0070.04316.23
5.6.130.0050.03316.20
5.6.120.0080.04617.64
5.6.110.0090.03017.67
5.6.100.0100.03317.68
5.6.90.0080.02017.83
5.6.80.0040.02617.26
5.6.70.0110.00014.02
5.6.60.0000.01214.35
5.6.50.0070.00714.32
5.6.40.0040.00814.46
5.6.30.0080.00014.07
5.6.20.0070.00714.10
5.6.10.0000.00814.23
5.6.00.0030.01014.13
5.5.380.0030.01014.18
5.5.370.0120.00414.15
5.5.360.0000.01514.08
5.5.350.0080.02417.49
5.5.340.0050.02816.02
5.5.330.0110.03317.39
5.5.320.0250.02517.27
5.5.310.0220.04217.25
5.5.300.0010.03616.20
5.5.290.0080.04115.99
5.5.280.0020.02717.40
5.5.270.0070.03017.56
5.5.260.0080.03017.57
5.5.250.0050.04117.40
5.5.240.2140.02217.10
5.5.230.0030.00614.35
5.5.220.0000.00814.27
5.5.210.0070.00714.27
5.5.200.0040.01114.34
5.5.190.0070.00714.34
5.5.180.0090.00614.36
5.5.170.0030.01014.32
5.5.160.0080.00414.01
5.5.150.0030.00714.13
5.5.140.0040.00813.89
5.5.130.0060.00914.40
5.5.120.0000.01514.21
5.5.110.0040.01214.01
5.5.100.0100.00714.14
5.5.90.0060.00613.95
5.5.80.0090.00314.18
5.5.70.0030.00814.39
5.5.60.0080.00414.24
5.5.50.0050.00314.37
5.5.40.0110.00014.05
5.5.30.0040.01114.14
5.5.20.0030.01013.76
5.5.10.0030.00914.38
5.5.00.0000.01514.04

preferences:
48.07 ms | 400 KiB | 5 Q