3v4l.org

run code in 300+ PHP versions simultaneously
<?php print date_create('next week tuesday')->format('d-m-Y'."\n"); print date_create('wednesday next week')->format('d-m-Y'."\n"); print date_create('thursday next week')->format('d-m-Y'."\n"); print date_create('friday next week')->format('d-m-Y'."\n"); print date_create('saturday next week')->format('d-m-Y'."\n"); print date_create('sunday next week')->format('d-m-Y'."\n"); print date_create('monday next week')->format('d-m-Y'."\n"); print date_create('tuesday +2 weeks')->format('d-m-Y'."\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.0040.01418.55
8.3.50.0110.00721.33
8.3.40.0150.00018.98
8.3.30.0100.00320.37
8.3.20.0080.00020.21
8.3.10.0070.00021.95
8.3.00.0030.00522.34
8.2.180.0040.01118.41
8.2.170.0110.00322.96
8.2.160.0080.00620.44
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0080.00019.77
8.2.110.0100.00019.30
8.2.100.0050.00519.39
8.2.90.0030.00619.29
8.2.80.0040.00419.46
8.2.70.0040.00417.62
8.2.60.0030.00618.05
8.2.50.0000.00818.07
8.2.40.0040.00417.91
8.2.30.0040.00418.13
8.2.20.0000.00717.88
8.2.10.0060.00317.80
8.2.00.0040.00717.86
8.1.280.0090.00925.92
8.1.270.0040.00422.14
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0120.00319.34
8.1.230.0000.01419.13
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0000.00817.48
8.1.190.0050.00317.53
8.1.180.0000.00818.80
8.1.170.0060.00318.51
8.1.160.0070.00022.21
8.1.150.0040.00418.78
8.1.140.0060.00317.50
8.1.130.0000.00717.83
8.1.120.0040.00417.45
8.1.110.0070.00017.60
8.1.100.0070.00017.63
8.1.90.0000.00717.58
8.1.80.0000.00717.63
8.1.70.0030.00317.56
8.1.60.0060.00317.68
8.1.50.0070.00017.55
8.1.40.0050.00317.58
8.1.30.0070.00017.59
8.1.20.0000.00917.56
8.1.10.0040.00417.73
8.1.00.0080.00017.70
8.0.300.0070.00018.77
8.0.290.0070.00017.17
8.0.280.0050.00318.63
8.0.270.0050.00217.33
8.0.260.0000.00816.94
8.0.250.0000.00717.03
8.0.240.0030.00517.07
8.0.230.0030.00317.11
8.0.220.0030.00717.05
8.0.210.0030.00317.04
8.0.200.0070.00017.15
8.0.190.0070.00017.12
8.0.180.0070.00017.07
8.0.170.0040.00416.98
8.0.160.0030.00317.08
8.0.150.0030.00316.92
8.0.140.0040.00417.02
8.0.130.0030.00313.38
8.0.120.0000.00817.03
8.0.110.0030.00516.99
8.0.100.0040.00416.92
8.0.90.0030.00317.00
8.0.80.0070.00717.02
8.0.70.0050.00317.00
8.0.60.0070.00016.99
8.0.50.0040.00416.89
8.0.30.0100.01217.19
8.0.20.0110.01117.40
8.0.10.0040.00417.11
8.0.00.0100.00816.79
7.4.330.0050.00015.00
7.4.320.0030.00316.68
7.4.300.0030.00316.63
7.4.290.0030.00316.50
7.4.280.0000.00716.63
7.4.270.0000.00716.55
7.4.260.0080.00016.64
7.4.250.0080.00016.55
7.4.240.0010.00616.73
7.4.230.0070.00016.46
7.4.220.0100.00716.57
7.4.210.0060.01016.58
7.4.200.0000.00816.68
7.4.190.0040.00416.67
7.4.160.0100.00716.86
7.4.150.0100.01117.40
7.4.140.0090.01017.86
7.4.130.0150.00516.62
7.4.120.0090.00816.69
7.4.110.0160.00816.63
7.4.100.0100.01316.68
7.4.90.0120.00616.78
7.4.80.0130.01019.39
7.4.70.0030.01216.71
7.4.60.0140.00916.65
7.4.50.0000.00416.70
7.4.40.0030.01022.77
7.4.30.0070.01016.70
7.4.00.0070.00715.07
7.3.330.0030.00313.22
7.3.320.0050.00013.17
7.3.310.0030.00316.48
7.3.300.0050.00216.34
7.3.290.0110.00616.30
7.3.280.0070.00916.33
7.3.270.0090.00817.40
7.3.260.0070.01116.53
7.3.250.0120.00716.62
7.3.240.0060.01516.36
7.3.230.0140.00316.39
7.3.210.0070.01016.46
7.3.200.0000.01719.39
7.3.190.0150.00316.46
7.3.180.0060.00916.55
7.3.170.0100.00616.72
7.3.160.0120.00416.40
7.3.120.0100.00314.94
7.2.330.0150.00416.70
7.2.320.0070.01416.73
7.2.310.0100.01416.72
7.2.300.0070.01016.74
7.2.290.0030.01316.70
7.2.60.0110.00317.03
7.2.00.0030.01019.64
7.1.200.0110.00415.73
7.1.100.0000.01218.25
7.1.70.0000.00717.23
7.1.60.0060.01919.21
7.1.50.0130.01016.87
7.1.00.0030.06322.35
7.0.200.0220.00514.64
7.0.140.0070.07022.01
7.0.60.0030.08320.04
7.0.50.0070.08317.81
7.0.40.0100.06320.01
7.0.30.0400.07020.21
7.0.20.0270.05020.03
7.0.10.0100.06320.00
7.0.00.0030.07720.18
5.6.280.0070.07021.13
5.6.210.0030.08720.71
5.6.200.0000.04318.22
5.6.190.0070.08320.27
5.6.180.0170.05020.45
5.6.170.0270.07320.71
5.6.160.0030.04720.46
5.6.150.0030.08018.11
5.6.140.0000.04318.22
5.6.130.0030.04018.13
5.6.120.0170.04720.98
5.6.110.0130.06321.09
5.6.100.0170.07721.12
5.6.90.0130.08021.02
5.6.80.0070.06320.44
5.5.350.0030.08020.47
5.5.340.0070.08317.98
5.5.330.0130.05720.38
5.5.320.0270.08020.21
5.5.310.0330.07020.21
5.5.300.0030.07717.98
5.5.290.0070.08717.87
5.5.280.0070.05320.85
5.5.270.0000.04720.65
5.5.260.0130.07720.84
5.5.250.0170.07020.59
5.5.240.0170.07720.34
5.4.450.3600.04319.26
5.4.440.3270.04319.59
5.4.430.3330.03319.25
5.4.420.4100.03719.45
5.4.410.4100.04019.25
5.4.400.4000.04319.17
5.4.390.3170.03718.81
5.4.380.2670.03719.10
5.4.370.4030.04018.92
5.4.360.3130.03718.81
5.4.350.2770.03319.10
5.4.340.3400.03719.08
5.4.320.0070.07319.07
5.4.310.3470.04319.25
5.4.300.3430.04319.03
5.4.290.4870.04019.09
5.4.280.3930.03719.21
5.4.270.2970.03319.06
5.4.260.3170.04019.09
5.4.250.3200.03019.08
5.4.240.2730.03319.08
5.4.230.2830.03319.08
5.4.220.2770.03719.24
5.4.210.3130.03719.09
5.4.200.0030.08019.09
5.4.190.3430.03319.12
5.4.180.3300.04019.23
5.4.170.3200.03018.78
5.4.160.3200.03318.80
5.4.150.3970.04319.06
5.4.140.4030.03316.35
5.4.130.4030.03316.37
5.4.120.3970.04316.32
5.4.110.3600.03316.52
5.4.100.3270.03316.51
5.4.90.3830.03716.44
5.4.80.4030.02716.44
5.4.70.4030.03016.46
5.4.60.4230.04716.36
5.4.50.4100.03016.43
5.4.40.3700.03716.38
5.4.30.3770.03716.20
5.4.20.3770.03716.39
5.4.10.4070.03716.35
5.4.00.4000.03715.68
5.3.290.0070.04714.63
5.3.280.3600.03314.70
5.3.270.3030.04014.52
5.3.260.3900.03314.66
5.3.250.4070.03714.57
5.3.240.4130.03314.49
5.3.230.4130.03714.45
5.3.220.4100.03314.67
5.3.210.4070.03714.41
5.3.200.3130.03314.48
5.3.190.3670.03714.52
5.3.180.2930.03014.55
5.3.170.3800.03714.44
5.3.160.3970.04014.41
5.3.150.4870.03314.60
5.3.140.3800.04014.52
5.3.130.4130.03014.40
5.3.120.4100.03714.54
5.3.110.3970.04014.61
5.3.100.3670.03013.99
5.3.90.3200.03313.89
5.3.80.3200.04013.87
5.3.70.3330.03713.95
5.3.60.3530.03714.06
5.3.50.3400.03013.81
5.3.40.3500.03313.91
5.3.30.3630.04013.77
5.3.20.3700.03013.69
5.3.10.3330.04013.61
5.3.00.3770.03013.51
5.2.170.2870.03011.00
5.2.160.2970.02711.31
5.2.150.2770.03711.16
5.2.140.2530.03011.16
5.2.130.2930.03711.16
5.2.120.2500.03011.16
5.2.110.2870.03010.95
5.2.100.3330.02711.22
5.2.90.3270.02311.21
5.2.80.3000.03311.18
5.2.70.3230.03311.00
5.2.60.2630.03011.07
5.2.50.2830.03010.87
5.2.40.2400.02310.91
5.2.30.2500.03310.78
5.2.20.2300.03010.91
5.2.10.1930.03010.89
5.2.00.2400.03310.77
5.1.60.2500.02310.16
5.1.50.2830.0209.98
5.1.40.2400.0139.85
5.1.30.2530.03010.34
5.1.20.2600.02710.31
5.1.10.2670.0309.94
5.1.00.2630.0279.96
5.0.50.1430.0239.76
5.0.40.1630.0209.76
5.0.30.1630.0309.76
5.0.20.1570.0209.76
5.0.10.1470.0179.76
5.0.00.1570.0339.76
4.4.90.1300.0209.76
4.4.80.1430.0139.76
4.4.70.1100.0239.76
4.4.60.1270.0209.76
4.4.50.1200.0139.76
4.4.40.1530.0279.76
4.4.30.1470.0179.76
4.4.20.1230.0179.76
4.4.10.1500.0179.76
4.4.00.1470.0279.76
4.3.110.1430.0179.76
4.3.100.1630.0139.76
4.3.90.1530.0139.76
4.3.80.1670.0279.76
4.3.70.1670.0139.76
4.3.60.1470.0139.76
4.3.50.1170.0239.76
4.3.40.1630.0279.76
4.3.30.0800.0179.76
4.3.20.0830.0179.76
4.3.10.0800.0139.76
4.3.00.0930.0179.76

preferences:
54.37 ms | 401 KiB | 5 Q