3v4l.org

run code in 300+ PHP versions simultaneously
<?php $weekDate = new DateTime('- 1 week'); echo $weekDate->format('Y-m-d')."\n"; for($i=0;$i<8;$i++) { $future = new DateTime('+ 1 days'); echo $future->format('Y-m-d')."\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.110.0060.00320.94
8.3.100.0000.00818.46
8.3.90.0110.00726.77
8.3.80.0040.00816.63
8.3.70.0090.01216.63
8.3.60.0040.01118.56
8.3.50.0100.01022.12
8.3.40.0100.00618.97
8.3.30.0000.01518.75
8.3.20.0080.00020.16
8.3.10.0000.00821.80
8.3.00.0040.00419.14
8.2.230.0040.00422.58
8.2.220.0120.00324.06
8.2.210.0090.00926.77
8.2.200.0040.00816.75
8.2.190.0140.00716.63
8.2.180.0060.01225.92
8.2.170.0170.00322.96
8.2.160.0150.00019.16
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0060.00320.47
8.2.120.0080.00026.35
8.2.110.0060.00320.97
8.2.100.0040.00718.16
8.2.90.0030.00619.34
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0000.00918.05
8.2.50.0030.00618.07
8.2.40.0080.00018.35
8.2.30.0060.00318.06
8.2.20.0050.00317.93
8.2.10.0040.00418.24
8.2.00.0070.00018.16
8.1.290.0040.00430.84
8.1.280.0070.01425.92
8.1.270.0070.00024.00
8.1.260.0020.00528.09
8.1.250.0080.00028.09
8.1.240.0030.00724.05
8.1.230.0040.00717.82
8.1.220.0000.00817.78
8.1.210.0000.00818.77
8.1.200.0060.00317.73
8.1.190.0080.00017.48
8.1.180.0040.00418.10
8.1.170.0050.00318.71
8.1.160.0080.00019.04
8.1.150.0000.00719.09
8.1.140.0050.00219.57
8.1.130.0000.00717.73
8.1.120.0060.00317.60
8.1.110.0040.00417.57
8.1.100.0000.00717.73
8.1.90.0000.00817.72
8.1.80.0000.00717.66
8.1.70.0030.00317.75
8.1.60.0060.00317.67
8.1.50.0040.00417.60
8.1.40.0100.00017.77
8.1.30.0060.00317.83
8.1.20.0000.00717.80
8.1.10.0000.00817.77
8.1.00.0030.00617.66
8.0.300.0000.00718.77
8.0.290.0070.00017.00
8.0.280.0040.00418.45
8.0.270.0020.00517.26
8.0.260.0000.00617.26
8.0.250.0040.00417.18
8.0.240.0070.00017.20
8.0.230.0000.00717.11
8.0.220.0000.00717.04
8.0.210.0040.00417.07
8.0.200.0000.00717.20
8.0.190.0060.00317.21
8.0.180.0070.00017.16
8.0.170.0000.00817.19
8.0.160.0000.00717.04
8.0.150.0000.00817.16
8.0.140.0040.00417.00
8.0.130.0000.00513.51
8.0.120.0050.00317.00
8.0.110.0020.00516.98
8.0.100.0070.00017.05
8.0.90.0040.00417.14
8.0.80.0090.00617.11
8.0.70.0000.00717.13
8.0.60.0040.00416.96
8.0.50.0040.00417.12
8.0.30.0120.00617.26
8.0.20.0100.01117.42
8.0.10.0030.00517.02
8.0.00.0140.00316.93
7.4.330.0050.00015.08
7.4.320.0060.00016.68
7.4.300.0000.00616.73
7.4.290.0000.00716.58
7.4.280.0040.00416.77
7.4.270.0060.00316.73
7.4.260.0040.00416.53
7.4.250.0030.00516.61
7.4.240.0000.00816.65
7.4.230.0030.00316.72
7.4.220.0100.01016.79
7.4.210.0050.01116.58
7.4.200.0030.00316.75
7.4.160.0030.01316.88
7.4.150.0070.01017.40
7.4.140.0090.01317.86
7.4.130.0080.01116.70
7.4.120.0100.01016.70
7.4.110.0100.00716.67
7.4.100.0120.01116.61
7.4.90.0140.00416.57
7.4.80.0100.00719.39
7.4.70.0080.00816.82
7.4.60.0150.00316.56
7.4.50.0000.01516.75
7.4.40.0060.01316.65
7.4.30.0060.01016.75
7.4.00.0030.00914.79
7.3.330.0040.00413.35
7.3.320.0050.00013.19
7.3.310.0030.00316.30
7.3.300.0030.00316.36
7.3.290.0030.00316.49
7.3.280.0110.00516.47
7.3.270.0120.00617.40
7.3.260.0150.00216.77
7.3.250.0100.00916.56
7.3.240.0080.01016.59
7.3.230.0030.02016.66
7.3.210.0050.01216.75
7.3.200.0030.01416.91
7.3.190.0140.00616.67
7.3.180.0140.00316.55
7.3.170.0090.00616.62
7.3.160.0110.01116.59
7.3.00.0060.01316.86
7.2.330.0100.00716.82
7.2.320.0060.01617.06
7.2.310.0060.01116.82
7.2.300.0120.00616.78
7.2.290.0030.01316.80
7.2.130.0100.00716.94
7.2.120.0030.00616.88
7.2.110.0070.01416.92
7.2.100.0090.00616.93
7.2.90.0030.00916.96
7.2.80.0040.01116.89
7.2.70.0070.00717.23
7.2.60.0110.00717.05
7.2.50.0100.00717.02
7.2.40.0130.00317.16
7.2.30.0140.01017.15
7.2.20.0160.00317.25
7.2.10.0090.00617.07
7.2.00.0150.00718.40
7.1.250.0060.00616.04
7.1.240.0110.00015.98
7.1.230.0040.00815.82
7.1.220.0080.00616.08
7.1.210.0110.00715.82
7.1.200.0080.00815.77
7.1.190.0060.00915.61
7.1.180.0040.01215.67
7.1.170.0090.00615.90
7.1.160.0080.00816.02
7.1.150.0100.00316.13
7.1.140.0120.00015.97
7.1.130.0100.00716.01
7.1.120.0110.00716.07
7.1.110.0170.00315.63
7.1.100.0080.00716.94
7.1.90.0150.00315.85
7.1.80.0040.00815.85
7.1.70.0070.00916.51
7.1.60.0080.00817.93
7.1.50.0050.01216.50
7.1.40.0000.01015.78
7.1.30.0100.01016.00
7.1.20.0110.00715.78
7.1.10.0090.00716.04
7.1.00.0070.03919.22
7.0.330.0120.00615.27
7.0.320.0100.00715.40
7.0.310.0070.01015.37
7.0.300.0090.00615.57
7.0.290.0120.00315.39
7.0.280.0040.00715.58
7.0.270.0070.01015.47
7.0.260.0090.00315.52
7.0.250.0160.00315.41
7.0.240.0220.00015.29
7.0.230.0130.00715.31
7.0.220.0140.00315.51
7.0.210.0130.00315.48
7.0.200.0400.00315.32
7.0.190.0150.00415.27
7.0.180.0110.00415.18
7.0.170.0120.00315.55
7.0.160.0150.00315.56
7.0.150.0090.00715.50
7.0.140.0100.00615.58
7.0.130.0140.00315.71
7.0.120.0070.01015.59
7.0.110.0070.01115.39
7.0.100.0030.00815.66
7.0.90.0110.00615.61
7.0.80.0100.03017.82
7.0.70.0550.03217.61
7.0.60.0560.03417.72
7.0.50.0580.03218.00
7.0.40.0550.03016.96
7.0.30.0570.03017.07
7.0.20.0620.02817.01
7.0.10.0590.03117.04
7.0.00.0550.03216.97
5.6.380.0000.00814.70
5.6.370.0080.00314.64
5.6.360.0000.01014.51
5.6.350.0030.00914.29
5.6.340.0030.00614.34
5.6.330.0060.00314.49
5.6.320.0040.00714.29
5.6.310.0030.00914.75
5.6.300.0060.00914.48
5.6.290.0130.00014.56
5.6.280.0040.03917.69
5.6.270.0080.00814.28
5.6.260.0060.00614.33
5.6.250.0080.00014.47
5.6.240.0030.01014.60
5.6.230.0030.00614.19
5.6.220.0450.03117.46
5.6.210.0470.03217.53
5.6.200.0450.03617.65
5.6.190.0460.03317.81
5.6.180.0460.03217.70
5.6.170.0490.03017.86
5.6.160.0450.03317.85
5.6.150.0450.03517.68
5.6.140.0530.02617.80
5.6.130.0470.03217.68
5.6.120.0090.03417.74
5.6.110.0270.03417.83
5.6.100.0520.03517.74
5.6.90.0480.03217.66
5.6.80.0550.03217.36
5.6.70.0500.02517.48
5.6.60.0420.03217.28
5.6.50.0450.03217.45
5.6.40.0500.02917.29
5.6.30.0510.02217.39
5.6.20.0450.03117.55
5.6.10.0420.03417.49
5.6.00.0430.03317.51
5.5.380.0090.00311.18
5.5.370.0040.00411.22
5.5.360.0430.03315.83
5.5.350.0450.03315.88
5.5.340.0410.03516.06
5.5.330.0430.02816.08
5.5.320.0430.03516.02
5.5.310.0430.03216.05
5.5.300.0470.03116.06
5.5.290.0430.03416.14
5.5.280.0080.03016.06
5.5.270.0480.03016.16
5.5.260.0460.03016.07
5.5.250.0480.02715.93
5.5.240.0520.02715.73
5.5.230.0450.03115.75
5.5.220.0520.03515.69
5.5.210.0490.02715.68
5.5.200.0430.03015.73
5.5.190.0490.02715.73
5.5.180.0420.03215.72
5.5.170.0000.00811.18
5.5.160.0400.03615.65
5.5.150.0400.03115.69
5.5.140.0400.03315.67
5.5.130.0430.02815.74
5.5.120.0460.03015.79
5.5.110.0400.03615.72
5.5.100.0450.02915.68
5.5.90.0400.03215.63
5.5.80.0400.03215.62
5.5.70.0450.02915.68
5.5.60.0430.02815.66
5.5.50.0460.02515.57
5.5.40.0420.03215.70
5.5.30.0440.02815.58
5.5.20.0420.03215.67
5.5.10.0560.03115.70
5.5.00.0480.02815.68

preferences:
34.25 ms | 403 KiB | 5 Q