3v4l.org

run code in 300+ PHP versions simultaneously
<?php $format="Y-m"; $date="2018-02"; $d = DateTime::createFromFormat($format, $date); echo ($d->format($format)); echo "\n" . date_format($d, $format);

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.4.20.0090.00919.63
8.4.10.0000.00917.97
8.3.140.0160.00416.69
8.3.130.0040.00416.69
8.3.120.0080.00018.99
8.3.110.0040.00416.25
8.3.100.0060.00316.72
8.3.90.0000.00726.77
8.3.80.0030.00717.97
8.3.70.0130.00416.63
8.3.60.0130.00316.25
8.3.50.0100.00517.41
8.3.40.0120.00319.09
8.3.30.0150.00018.82
8.3.20.0040.00421.91
8.3.10.0030.00523.48
8.3.00.0080.00019.08
8.2.260.0110.00718.55
8.2.250.0000.00818.54
8.2.240.0030.00617.21
8.2.230.0090.00020.94
8.2.220.0090.00016.70
8.2.210.0070.01126.77
8.2.200.0060.00318.41
8.2.190.0110.00716.58
8.2.180.0060.00916.38
8.2.170.0040.01122.96
8.2.160.0070.00720.37
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00818.21
8.2.120.0080.00026.35
8.2.110.0070.00321.11
8.2.100.0040.00818.03
8.2.90.0030.00517.91
8.2.80.0060.00319.11
8.2.70.0000.00817.93
8.2.60.0000.00818.02
8.2.50.0000.00918.10
8.2.40.0040.00420.50
8.2.30.0040.00419.53
8.2.20.0050.00318.12
8.2.10.0040.00418.23
8.2.00.0000.00818.29
8.1.310.0040.00416.93
8.1.300.0070.01020.06
8.1.290.0110.00030.84
8.1.280.0090.00625.92
8.1.270.0040.00420.36
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.15
8.1.230.0080.00320.86
8.1.220.0000.00817.77
8.1.210.0040.00418.79
8.1.200.0040.00417.47
8.1.190.0080.00017.13
8.1.180.0100.00018.10
8.1.170.0030.00518.94
8.1.160.0040.00418.80
8.1.150.0040.00418.70
8.1.140.0040.00417.57
8.1.130.0020.00520.31
8.1.120.0070.00017.51
8.1.110.0000.00717.43
8.1.100.0030.00517.55
8.1.90.0000.00717.54
8.1.80.0050.00217.55
8.1.70.0030.00317.51
8.1.60.0000.00817.44
8.1.50.0040.00417.51
8.1.40.0000.00717.47
8.1.30.0000.00917.62
8.1.20.0000.00717.46
8.1.10.0040.00417.64
8.1.00.0040.00417.53
8.0.300.0050.00220.16
8.0.290.0040.00416.75
8.0.280.0000.00818.56
8.0.270.0070.00017.25
8.0.260.0060.00316.89
8.0.250.0050.00317.20
8.0.240.0000.00717.01
8.0.230.0000.00717.17
8.0.220.0040.00417.09
8.0.210.0040.00417.14
8.0.200.0040.00717.08
8.0.190.0060.00317.13
8.0.180.0030.00317.14
8.0.170.0000.00817.13
8.0.160.0040.00417.10
8.0.150.0070.00017.15
8.0.140.0000.00717.12
8.0.130.0000.00513.51
8.0.120.0030.00616.97
8.0.110.0040.00417.00
8.0.100.0040.00417.00
8.0.90.0040.00417.07
8.0.80.0030.01316.98
8.0.70.0000.00817.04
8.0.60.0000.00716.90
8.0.50.0040.00416.91
8.0.30.0100.01017.30
8.0.20.0070.01117.40
8.0.10.0050.00217.22
8.0.00.0150.00516.92
7.4.330.0050.00015.55
7.4.320.0030.00316.51
7.4.300.0050.00216.50
7.4.290.0070.00016.62
7.4.280.0070.00016.49
7.4.270.0070.00016.52
7.4.260.0030.00516.48
7.4.250.0000.00716.55
7.4.240.0070.00016.66
7.4.230.0080.00016.27
7.4.220.0040.00416.64
7.4.210.0080.00816.43
7.4.200.0070.00016.36
7.4.160.0100.00616.65
7.4.140.0140.00417.86
7.4.130.0110.00716.72
7.4.120.0100.00916.59
7.4.110.0090.00916.55
7.4.100.0060.01116.57
7.4.90.0030.01716.41
7.4.80.0130.00919.39
7.4.70.0110.00716.63
7.4.60.0080.00816.71
7.4.50.0070.01016.52
7.4.40.0080.01216.52
7.4.00.0070.00715.12
7.3.330.0040.00413.19
7.3.320.0030.00312.98
7.3.310.0000.00816.10
7.3.300.0070.00016.30
7.3.290.0040.00416.29
7.3.280.0070.01116.24
7.3.260.0100.00916.53
7.3.240.0070.01016.53
7.3.230.0130.00316.38
7.3.210.0120.01316.35
7.3.200.0120.00316.51
7.3.190.0060.00916.63
7.3.180.0100.00716.33
7.3.170.0160.00616.39
7.3.160.0060.01316.46
7.3.120.0060.01214.86
7.3.110.0100.00314.76
7.3.100.0110.00714.78
7.3.90.0060.01714.79
7.3.80.0090.00914.57
7.3.70.0070.00714.68
7.3.60.0030.01314.35
7.3.50.0070.01014.91
7.3.40.0050.00814.32
7.3.30.0030.00914.48
7.3.20.0040.01316.51
7.3.10.0030.01216.47
7.3.00.0130.00316.55
7.2.330.0040.01416.61
7.2.320.0100.00716.90
7.2.310.0130.00916.69
7.2.300.0060.01016.66
7.2.290.0110.00716.96
7.2.240.0030.01315.00
7.2.230.0080.01114.83
7.2.220.0050.01514.78
7.2.210.0040.01115.10
7.2.200.0030.01414.73
7.2.190.0040.01114.92
7.2.180.0100.01014.83
7.2.170.0080.00814.72
7.2.160.0070.00715.07
7.2.150.0120.00416.51
7.2.140.0040.00716.99
7.2.130.0000.01616.68
7.2.120.0070.00416.65
7.2.110.0060.01216.84
7.2.100.0060.01016.66
7.2.90.0100.00716.71
7.2.80.0090.00616.90
7.2.70.0090.00616.56
7.2.60.0060.00817.02
7.2.50.0140.00517.04
7.2.40.0400.00817.52
7.2.30.0490.00917.52
7.2.20.0560.01017.43
7.2.10.0420.01017.44
7.2.00.0510.01017.79
7.1.330.0100.00615.75
7.1.320.0070.01315.76
7.1.310.0060.00915.55
7.1.300.0110.00715.55
7.1.290.0070.01415.23
7.1.280.0060.00915.29
7.1.270.0000.01115.71
7.1.260.0070.00415.85
7.1.250.0070.01015.74
7.1.200.0070.00415.79
7.1.160.0570.01116.83
7.1.150.0670.01316.88
7.1.140.0730.00916.86
7.1.130.0640.01116.94
7.1.120.0530.01317.02
7.1.110.0790.01316.07
7.1.100.0730.01316.20
7.1.90.0810.01216.13
7.1.80.0740.00916.09
7.1.70.0810.01215.16
7.1.60.0800.01133.19
7.1.50.0970.01333.10
7.1.40.1130.01232.66
7.1.30.0960.01732.74
7.1.20.0510.01332.88
7.1.10.1120.01414.85
7.1.00.0640.01314.93

preferences:
76.59 ms | 403 KiB | 5 Q