3v4l.org

run code in 300+ PHP versions simultaneously
<?php $endDate = new DateTime('1st January Next Year'); echo $endDate->format('Y-m-d'); // 2017-01-01

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.130.0030.00618.63
8.3.120.0040.01518.73
8.3.110.0080.00020.94
8.3.100.0090.00024.06
8.3.90.0050.00318.55
8.3.80.0040.00418.43
8.3.70.0290.00717.36
8.3.60.0220.01618.18
8.3.50.0210.00420.74
8.3.40.0190.00518.39
8.3.30.0180.00318.28
8.3.20.0110.00418.58
8.3.10.0130.00219.96
8.3.00.0090.00619.49
8.2.250.0040.00416.96
8.2.240.0030.00617.18
8.2.230.0060.00322.58
8.2.220.0030.00637.54
8.2.210.0060.00926.77
8.2.200.0100.00018.53
8.2.190.0140.00617.27
8.2.180.0100.00917.30
8.2.170.0140.00518.57
8.2.160.0120.00620.10
8.2.150.0130.00221.08
8.2.140.0090.00721.32
8.2.130.0130.00718.04
8.2.120.0130.00222.16
8.2.110.0150.00320.20
8.2.100.0170.00117.98
8.2.90.0140.00418.64
8.2.80.0150.00117.97
8.2.70.0120.00317.92
8.2.60.0130.00317.95
8.2.50.0110.00518.03
8.2.40.0090.00518.92
8.2.30.0080.00618.77
8.2.20.0090.00517.95
8.2.10.0110.00517.95
8.2.00.0100.00617.90
8.1.300.0090.00620.11
8.1.290.0060.00318.88
8.1.280.0160.00521.95
8.1.270.0130.00621.56
8.1.260.0120.00423.03
8.1.250.0110.00423.03
8.1.240.0080.00720.31
8.1.230.0110.00617.79
8.1.220.0110.00317.85
8.1.210.0130.00118.37
8.1.200.0130.00317.73
8.1.190.0130.00317.66
8.1.180.0150.00218.03
8.1.170.0120.00218.33
8.1.160.0090.00719.45
8.1.150.0090.00618.48
8.1.140.0100.00518.35
8.1.130.0080.00617.76
8.1.120.0080.00817.80
8.1.110.0080.00617.77
8.1.100.0070.00517.71
8.1.90.0110.00317.62
8.1.80.0070.00717.66
8.1.70.0100.00517.72
8.1.60.0130.00517.71
8.1.50.0140.00517.70
8.1.40.0160.00417.65
8.1.30.0120.00617.73
8.1.20.0100.00617.75
8.1.10.0130.00517.72
8.1.00.0140.00217.73
8.0.300.0150.00218.37
8.0.290.0170.00217.48
8.0.280.0070.00918.27
8.0.270.0110.00817.51
8.0.260.0110.00317.38
8.0.250.0120.00217.44
8.0.240.0080.00717.42
8.0.230.0120.00217.27
8.0.220.0130.00317.23
8.0.210.0140.00117.16
8.0.200.0110.00417.30
8.0.190.0110.00517.26
8.0.180.0120.00517.26
8.0.170.0120.00417.23
8.0.160.0100.00517.27
8.0.150.0110.00617.20
8.0.140.0110.00617.12
8.0.130.0140.00416.56
8.0.120.0130.00617.18
8.0.110.0130.00617.19
8.0.100.0150.00517.12
8.0.90.0120.00617.16
8.0.80.0150.00517.16
8.0.70.0130.00517.11
8.0.60.0110.00617.18
8.0.50.0120.00517.13
8.0.30.0120.00817.23
8.0.20.0140.00517.25
8.0.10.0130.00517.21
8.0.00.0100.00917.23
7.4.330.0120.00216.45
7.4.320.0110.00417.04
7.4.300.0050.00416.69
7.4.290.0120.00416.92
7.4.280.0130.00216.90
7.4.270.0100.00716.82
7.4.260.0130.00416.82
7.4.250.0130.00416.80
7.4.240.0120.00716.78
7.4.230.0100.00416.77
7.4.220.0130.00316.79
7.4.210.0130.00316.81
7.4.200.0150.00416.87
7.4.190.0120.00716.92
7.4.180.0140.00416.91
7.4.160.0090.00716.83
7.4.150.0110.00816.90
7.4.140.0140.00516.93
7.4.130.0130.00716.73
7.4.120.0100.00916.79
7.4.110.0150.00516.76
7.4.100.0130.00816.67
7.4.90.0120.00816.74
7.4.80.0150.00517.03
7.4.70.0120.00816.70
7.4.60.0110.00816.74
7.4.50.0120.00716.71
7.4.40.0140.00716.68
7.4.30.0140.00616.65
7.4.20.0140.00616.73
7.4.10.0140.00616.68
7.4.00.0100.00816.52
7.3.330.0120.00416.06
7.3.320.0140.00216.01
7.3.310.0110.00416.47
7.3.300.0140.00116.53
7.3.290.0120.00516.46
7.3.280.0130.00616.49
7.3.270.0130.00516.67
7.3.260.0120.00516.58
7.3.250.0120.00616.56
7.3.240.0130.00616.60
7.3.230.0130.00716.52
7.3.220.0140.00616.66
7.3.210.0100.00816.47
7.3.200.0110.00716.47
7.3.190.0130.00616.47
7.3.180.0110.00816.55
7.3.170.0150.00616.54
7.3.160.0150.00616.53
7.3.150.0160.00416.56
7.3.140.0160.00716.49
7.3.130.0170.00516.52
7.3.120.0160.00716.58
7.3.110.0120.00716.11
7.3.100.0130.00616.11
7.3.90.0130.00616.14
7.3.80.0120.00616.15
7.3.70.0130.00616.11
7.3.60.0120.00716.19
7.3.50.0130.00716.07
7.3.40.0100.00815.89
7.3.30.0120.00615.76
7.3.20.0340.00816.19
7.3.10.0180.00616.27
7.3.00.0220.00616.26
7.2.340.0170.00616.77
7.2.330.0170.00516.74
7.2.320.0160.00616.75
7.2.310.0140.00816.77
7.2.300.0160.00716.79
7.2.290.0180.00616.80
7.2.280.0170.00916.75
7.2.270.0140.00916.78
7.2.260.0180.00816.71
7.2.250.0210.00716.80
7.2.240.0170.00716.46
7.2.230.0130.00916.32
7.2.220.0120.00916.36
7.2.210.0160.00616.38
7.2.200.0160.00716.34
7.2.190.0150.00616.32
7.2.180.0160.00616.29
7.2.170.0150.00616.19
7.2.160.0140.00716.00
7.2.150.0320.00716.54
7.2.140.0350.00716.46
7.2.130.0190.00716.58
7.2.120.0190.00716.62
7.2.110.0180.00816.59
7.2.100.0190.00816.55
7.2.90.0190.00816.48
7.2.80.0210.00816.60
7.2.70.0190.00916.46
7.2.60.0340.00716.50
7.2.50.0320.00616.44
7.2.40.0300.00816.57
7.2.30.0280.00716.52
7.2.20.0280.00816.45
7.2.10.0280.00616.46
7.2.00.0230.00916.53
7.1.330.0180.00515.96
7.1.320.0130.00715.79
7.1.310.0150.00615.72
7.1.300.0160.00515.74
7.1.290.0160.00615.72
7.1.280.0170.00515.57
7.1.270.0270.00715.38
7.1.260.0220.00815.38
7.1.250.0190.00615.49
7.1.240.0230.00715.35
7.1.230.0220.00615.40
7.1.220.0280.00815.36
7.1.210.0210.00715.43
7.1.200.0200.00715.38
7.1.190.0390.00615.35
7.1.180.0270.00715.30
7.1.170.0400.00515.28
7.1.160.0320.00715.30
7.1.150.0290.00815.29
7.1.140.0340.00615.28
7.1.130.0290.00715.30
7.1.120.0300.00915.27
7.1.110.0350.00715.29
7.1.100.0400.00715.32
7.1.90.0330.00815.37
7.1.80.0250.00715.36
7.1.70.0280.00715.37
7.1.60.0280.00917.32
7.1.50.0280.00917.16
7.1.40.0300.00917.13
7.1.30.0300.00917.11
7.1.20.0340.00817.12
7.1.10.0320.00715.28
7.1.00.0270.01115.58
7.0.330.0340.00815.00
7.0.320.0220.00615.07
7.0.310.0260.00615.03
7.0.300.0350.00714.95
7.0.290.0430.00714.95
7.0.280.0320.00715.04
7.0.270.0290.00614.91
7.0.260.0300.00714.94
7.0.250.0320.00715.03
7.0.240.0260.00815.09
7.0.230.0230.00815.09
7.0.220.0220.00715.08
7.0.210.0290.00715.03
7.0.200.0360.00714.99
7.0.190.0280.00715.06
7.0.180.0300.00714.95
7.0.170.0270.00615.01
7.0.160.0490.00715.00
7.0.150.0250.00714.96
7.0.140.0260.00714.99
7.0.130.0250.00714.93
7.0.120.0330.00615.01
7.0.110.0280.00814.95
7.0.100.0290.01015.27
7.0.90.0240.01015.19
7.0.80.0250.01315.19
7.0.70.0280.00915.25
7.0.60.0210.01215.23
7.0.50.0240.00915.28
7.0.40.0210.01015.18
7.0.30.0240.01115.22
7.0.20.0220.01115.18
7.0.10.0210.01015.21
7.0.00.0240.01015.17
5.6.400.0130.00915.40
5.6.390.0140.00815.30
5.6.380.0150.00715.28
5.6.370.0140.00815.17
5.6.360.0140.00915.19
5.6.350.0160.00815.23
5.6.340.0160.00615.24
5.6.330.0150.00715.18
5.6.320.0140.00915.23
5.6.310.0130.00815.29
5.6.300.0120.01115.52
5.6.290.0130.00915.54
5.6.280.0110.01515.79
5.6.270.0130.01015.45
5.6.260.0110.01015.49
5.6.250.0120.01315.73
5.6.240.0120.01515.72
5.6.230.0120.01515.74
5.6.220.0130.01415.76
5.6.210.0130.01315.75
5.6.200.0110.01515.79
5.6.190.0130.01515.79
5.6.180.0160.01315.72
5.6.170.0130.01615.81
5.6.160.0140.01415.76
5.6.150.0130.01415.73
5.6.140.0140.01515.79
5.6.130.0140.01415.77
5.6.120.0140.01315.81
5.6.110.0130.01515.73
5.6.100.0130.01515.73
5.6.90.0140.01315.78
5.6.80.0140.01315.70
5.6.70.0130.01215.65
5.6.60.0140.01315.71
5.6.50.0110.01615.63
5.6.40.0130.01415.63
5.6.30.0130.01415.65
5.6.20.0140.01215.61
5.6.10.0140.01315.61
5.6.00.0130.01515.63
5.5.380.0130.01415.09
5.5.370.0140.01415.09
5.5.360.0120.01215.06
5.5.350.0130.01215.05
5.5.340.0130.01515.14
5.5.330.0120.01415.06
5.5.320.0130.01415.06
5.5.310.0140.01415.07
5.5.300.0130.01415.07
5.5.290.0130.01515.14
5.5.280.0120.01415.09
5.5.270.0130.01415.15
5.5.260.0120.01515.11
5.5.250.0130.01315.10
5.5.240.0130.01415.06
5.5.230.0130.01214.97
5.5.220.0150.01215.01
5.5.210.0130.01515.01
5.5.200.0120.01414.96
5.5.190.0120.01414.98
5.5.180.0110.01414.96
5.5.170.0140.00714.75
5.5.160.0120.01314.96
5.5.150.0120.01514.96
5.5.140.0120.01414.98
5.5.130.0100.01614.93
5.5.120.0120.01314.93
5.5.110.0130.01314.95
5.5.100.0130.01314.92
5.5.90.0140.01214.95
5.5.80.0140.01015.05
5.5.70.0130.01115.03
5.5.60.0120.01414.93
5.5.50.0120.01215.00
5.5.40.0130.01214.94
5.5.30.0140.01215.01
5.5.20.0120.01415.00
5.5.10.0130.01115.02
5.5.00.0130.01514.96

preferences:
28.89 ms | 403 KiB | 5 Q