3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime('2013-01-31'); $date->modify('end of month')->modify('+ 2 days')->modify('end of month'); echo $date->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.60.0120.00316.75
8.3.50.0160.00516.50
8.3.40.0120.00319.18
8.3.30.0110.00418.95
8.3.20.0050.00519.02
8.3.10.0050.00320.64
8.3.00.0060.00319.50
8.2.180.0090.00625.92
8.2.170.0070.00722.96
8.2.160.0070.00721.19
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00419.89
8.2.110.0070.01720.95
8.2.100.0090.00318.16
8.2.90.0000.00920.94
8.2.80.0040.00418.05
8.2.70.0050.00517.50
8.2.60.0040.00418.04
8.2.50.0070.00418.07
8.2.40.0050.00317.91
8.2.30.0030.00618.06
8.2.20.0040.00417.75
8.2.10.0040.00417.86
8.2.00.0040.00417.97
8.1.280.0060.00925.92
8.1.270.0000.00724.66
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00620.64
8.1.230.0100.00320.84
8.1.220.0000.00817.74
8.1.210.0000.00818.83
8.1.200.0000.01017.48
8.1.190.0070.00017.41
8.1.180.0060.00318.10
8.1.170.0000.00718.84
8.1.160.0040.00418.95
8.1.150.0040.00418.81
8.1.140.0000.00717.58
8.1.130.0000.00717.84
8.1.120.0000.00717.49
8.1.110.0000.00717.58
8.1.100.0070.00017.54
8.1.90.0040.00417.64
8.1.80.0000.00717.57
8.1.70.0050.00317.55
8.1.60.0030.00617.52
8.1.50.0020.00517.50
8.1.40.0040.00417.68
8.1.30.0040.00417.75
8.1.20.0100.00017.61
8.1.10.0030.00517.59
8.1.00.0000.00817.69
8.0.300.0000.00719.85
8.0.290.0070.00016.85
8.0.280.0030.00318.36
8.0.270.0030.00317.19
8.0.260.0040.00416.89
8.0.250.0050.00317.00
8.0.240.0040.00417.18
8.0.230.0000.00717.16
8.0.220.0070.00017.16
8.0.210.0070.00017.06
8.0.200.0000.00717.16
8.0.190.0070.00017.05
8.0.180.0030.00517.09
8.0.170.0040.00417.06
8.0.160.0000.00717.11
8.0.150.0050.00317.02
8.0.140.0060.00317.02
8.0.130.0000.00513.53
8.0.120.0040.00416.98
8.0.110.0060.00316.92
8.0.100.0040.00416.96
8.0.90.0070.00017.09
8.0.80.0060.01117.12
8.0.70.0040.00417.08
8.0.60.0050.00216.92
8.0.50.0050.00217.04
8.0.30.0130.00617.14
8.0.20.0110.00817.27
8.0.10.0000.00717.21
8.0.00.0100.01216.72
7.4.330.0000.00512.99
7.4.320.0030.00316.63
7.4.300.0030.00316.72
7.4.290.0040.00416.68
7.4.280.0040.00416.62
7.4.270.0030.00316.66
7.4.260.0030.00313.27
7.4.250.0090.00016.72
7.4.240.0050.00316.64
7.4.230.0000.00716.54
7.4.220.0190.00716.63
7.4.210.0080.00716.72
7.4.200.0000.00716.54
7.4.190.0040.00416.68
7.4.160.0040.01216.88
7.4.150.0130.00616.79
7.4.140.0100.00716.57
7.4.130.0060.01116.63
7.4.120.0120.00516.85
7.4.110.0130.00616.77
7.4.100.0140.00316.75
7.4.90.0060.01116.58
7.4.80.0120.00816.76
7.4.70.0150.00616.72
7.4.60.0000.02016.78
7.4.50.0030.00616.48
7.4.40.0030.01216.54
7.4.30.0090.01216.44
7.4.00.0090.00615.06
7.3.330.0040.00413.13
7.3.320.0000.00613.19
7.3.310.0030.00616.33
7.3.300.0000.00716.29
7.3.290.0120.00316.47
7.3.280.0080.00816.41
7.3.270.0100.00716.34
7.3.260.0090.00916.59
7.3.250.0120.01116.61
7.3.240.0140.00316.46
7.3.230.0030.01316.51
7.3.210.0180.00616.54
7.3.200.0100.01019.39
7.3.190.0070.01016.41
7.3.180.0090.00616.63
7.3.170.0090.01016.42
7.3.160.0120.00316.50
7.3.120.0060.00915.03
7.2.330.0090.00916.55
7.2.320.0100.00616.77
7.2.310.0150.00916.79
7.2.300.0110.01116.85
7.2.290.0060.01216.82
7.2.60.0030.01017.00
7.2.00.0960.01117.88
7.1.200.0050.00415.91
7.1.100.0040.01117.94
7.1.70.0000.01017.11
7.1.60.0140.01019.40
7.1.50.0090.01217.02
7.1.00.0030.06722.36
7.0.200.0050.00316.88
7.0.140.0030.06722.08
7.0.120.0030.06322.18
7.0.60.0100.08319.97
7.0.50.0070.08017.81
7.0.40.0000.09320.04
7.0.30.0500.05320.30
7.0.20.0200.06320.00
7.0.10.0300.05320.00
7.0.00.0070.04020.01
5.6.280.0030.07321.04
5.6.210.0070.05720.72
5.6.200.0070.06718.18
5.6.190.0070.04320.62
5.6.180.0270.05020.39
5.6.170.0230.05320.38
5.6.160.0170.07720.37
5.6.150.0100.07718.16
5.6.140.0030.08318.20
5.6.130.0130.07318.11
5.6.120.0130.08321.09
5.6.110.0070.04721.01
5.6.100.0070.08720.99
5.6.90.0070.09020.99
5.6.80.0100.06320.41
5.6.70.4000.04320.39
5.5.350.0200.07720.34
5.5.340.0070.08017.93
5.5.330.0100.08020.14
5.5.320.0270.09020.19
5.5.310.0230.09020.13
5.5.300.0100.03718.02
5.5.290.0100.03317.92
5.5.280.0130.08320.73
5.5.270.0070.03720.86
5.5.260.0130.07020.86
5.5.250.0100.07720.64
5.5.240.0170.06720.15
5.4.450.0270.07719.41
5.4.440.3530.03019.41
5.4.430.0030.06719.14
5.4.420.0070.05719.41
5.4.410.0200.04319.32
5.4.400.0070.05719.00
5.4.390.0100.05318.96
5.4.380.0300.04718.70
5.4.370.0100.05318.49
5.4.360.0170.04718.57
5.4.350.0040.03711.97
5.4.340.0060.03611.97
5.4.320.0030.03912.46
5.4.310.0020.04212.46
5.4.300.0080.03812.46
5.4.290.0080.04112.45
5.4.280.0070.04012.35
5.4.270.0070.03912.35
5.4.260.0090.04012.35
5.4.250.0050.04112.35
5.4.240.0060.04012.35
5.4.230.0070.04312.35
5.4.220.0080.03812.34
5.4.210.0060.03512.34
5.4.200.0070.04212.34
5.4.190.0070.04212.34
5.4.180.0090.04212.34
5.4.170.0080.03912.35
5.4.160.0070.03912.34
5.4.150.0070.03912.34
5.4.140.0080.03812.02
5.4.130.0040.04112.02
5.4.120.0070.05111.97
5.4.110.0120.05111.97
5.4.100.0080.04211.97
5.4.90.0070.04611.97
5.4.80.0100.05011.97
5.4.70.0090.04611.96
5.4.60.0060.04311.96
5.4.50.0070.03811.96
5.4.40.0050.03811.95
5.4.30.0050.03811.95
5.4.20.0050.03711.95
5.4.10.0050.03611.95
5.4.00.0070.04211.44
5.3.290.0050.04012.80
5.3.280.0060.04512.71
5.3.270.0080.04312.72
5.3.260.0060.04712.72
5.3.250.0080.04512.72
5.3.240.0080.04712.72
5.3.230.0090.04712.71
5.3.220.0070.04912.68
5.3.210.0060.05212.68
5.3.200.0070.04712.68
5.3.190.0080.04712.68
5.3.180.0060.05112.67
5.3.170.0080.04712.67
5.3.160.0070.04712.67
5.3.150.0060.04612.67
5.3.140.0090.04212.66
5.3.130.0080.04512.66
5.3.120.0090.04412.66
5.3.110.0080.04712.66
5.3.100.0080.04012.12
5.3.90.0070.04212.08
5.3.80.0060.04212.07
5.3.70.0120.03612.08
5.3.60.0070.04112.06
5.3.50.0060.04112.00
5.3.40.0070.04312.00
5.3.30.0070.04711.95

preferences:
35.37 ms | 401 KiB | 5 Q