3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale (LC_ALL, 'pt_BR'); // Try to create the datetime instance if ($date=DateTime::createFromFormat("d-M-y ",strftime("%d-%b-%y","09-mai-17"))){ echo date_format($date,"Y/m/d"); } else { // It failed! Errors found, let's figure out what! echo "<pre>"; print_r(date_get_last_errors()); echo "</pre>"; }

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.01218.65
8.3.50.0180.00016.77
8.3.40.0000.01519.23
8.3.30.0090.00619.34
8.3.20.0150.00020.74
8.3.10.0050.00322.40
8.3.00.0050.00322.90
8.2.180.0100.01017.00
8.2.170.0110.00422.96
8.2.160.0140.00019.71
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0070.01021.37
8.2.110.0080.00321.44
8.2.100.0040.00818.24
8.2.90.0030.00519.47
8.2.80.0000.00818.18
8.2.70.0000.00817.97
8.2.60.0000.00818.40
8.2.50.0040.00418.41
8.2.40.0040.00420.72
8.2.30.0000.00719.60
8.2.20.0050.00218.29
8.2.10.0040.00418.43
8.2.00.0000.00818.63
8.1.280.0040.01125.92
8.1.270.0040.00424.41
8.1.260.0100.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00321.22
8.1.230.0070.00319.60
8.1.220.0000.00818.02
8.1.210.0030.00518.77
8.1.200.0030.00617.60
8.1.190.0030.00517.72
8.1.180.0000.00818.10
8.1.170.0030.00618.89
8.1.160.0000.00719.14
8.1.150.0030.00520.57
8.1.140.0040.00419.89
8.1.130.0030.00319.25
8.1.120.0030.00317.61
8.1.110.0000.00917.54
8.1.100.0040.00417.48
8.1.90.0040.00417.66
8.1.80.0020.00517.64
8.1.70.0040.00417.59
8.1.60.0030.00517.75
8.1.50.0040.00417.70
8.1.40.0060.00317.64
8.1.30.0000.00817.74
8.1.20.0040.00417.75
8.1.10.0040.00417.80
8.1.00.0080.00017.81
8.0.300.0070.00020.62
8.0.290.0000.00717.25
8.0.280.0000.00718.79
8.0.270.0030.00317.66
8.0.260.0040.00419.50
8.0.250.0050.00217.50
8.0.240.0040.00417.32
8.0.230.0030.00317.54
8.0.220.0030.00317.36
8.0.210.0060.00317.23
8.0.200.0060.00017.23
8.0.190.0040.00417.44
8.0.180.0080.00017.41
8.0.170.0040.00417.41
8.0.160.0000.00717.37
8.0.150.0000.00717.27
8.0.140.0000.00717.25
8.0.130.0050.00013.70
8.0.120.0040.00417.25
8.0.110.0040.00417.24
8.0.100.0040.00417.11
8.0.90.0030.00517.27
8.0.80.0080.00817.18
8.0.70.0080.00017.30
8.0.60.0050.00217.27
8.0.50.0000.00717.21
8.0.30.0120.00917.21
8.0.20.0100.00917.45
8.0.10.0040.00417.39
8.0.00.0100.01017.03
7.4.330.0000.00515.55
7.4.320.0000.00616.71
7.4.300.0060.00317.00
7.4.290.0000.00716.92
7.4.280.0030.00516.86
7.4.270.0000.00716.80
7.4.260.0030.00316.83
7.4.250.0030.00616.77
7.4.240.0040.00416.96
7.4.230.0000.00717.02
7.4.220.0040.01416.93
7.4.210.0000.01416.73
7.4.200.0000.00816.94
7.4.160.0070.00917.07
7.4.150.0190.00017.40
7.4.140.0080.01317.86
7.4.130.0100.01016.82
7.4.120.0120.01217.03
7.4.110.0030.01516.82
7.4.100.0140.00316.78
7.4.90.0140.00316.85
7.4.80.0090.00919.39
7.4.70.0100.00616.66
7.4.60.0030.01316.75
7.4.50.0040.00816.98
7.4.40.0090.00917.12
7.4.30.0130.00316.81
7.4.00.0070.00915.02
7.3.330.0020.00213.52
7.3.320.0020.00213.45
7.3.310.0050.00216.71
7.3.300.0030.00316.55
7.3.290.0090.00616.65
7.3.280.0090.00916.62
7.3.270.0000.01817.40
7.3.260.0080.01116.81
7.3.240.0090.00816.95
7.3.230.0110.00816.87
7.3.210.0100.00716.86
7.3.200.0060.01216.82
7.3.190.0030.01416.92
7.3.180.0070.01416.66
7.3.170.0060.01516.75
7.3.160.0080.00816.94
7.3.120.0000.01814.79
7.3.110.0090.00915.00
7.3.100.0040.01115.06
7.3.90.0000.01014.71
7.3.80.0090.00614.92
7.3.70.0110.00414.99
7.3.60.0030.00614.89
7.3.50.0000.01414.93
7.3.40.0070.00714.74
7.3.30.0040.01114.80
7.3.20.0080.00416.85
7.3.10.0190.00016.08
7.3.00.0130.00716.59
7.2.330.0030.01316.79
7.2.320.0210.00316.96
7.2.310.0030.01317.23
7.2.300.0090.01316.90
7.2.290.0090.00917.06
7.2.250.0050.01014.86
7.2.240.0070.01315.03
7.2.230.0060.00915.35
7.2.220.0000.01015.09
7.2.210.0040.00414.98
7.2.200.0070.00714.96
7.2.190.0060.00915.17
7.2.180.0000.01415.20
7.2.170.0030.00914.71
7.2.130.0150.00416.79
7.2.120.0200.00016.38
7.2.110.0230.00016.33
7.2.100.0140.01116.43
7.2.90.0130.00916.32
7.2.80.0080.00816.28
7.2.70.0120.01216.44
7.2.60.0090.00616.52
7.2.50.0150.00616.20
7.2.40.0210.00316.46
7.2.30.0230.00316.43
7.2.20.0140.00716.62
7.2.10.0130.00516.44
7.2.00.0140.01116.82
7.1.330.0040.01116.05
7.1.320.0030.01015.55
7.1.310.0130.00015.89
7.1.300.0030.01315.70
7.1.290.0000.00915.83
7.1.280.0040.00815.81
7.1.270.0000.01415.75
7.1.260.0050.00515.70
7.1.250.0150.00415.24
7.1.200.0100.00315.73
7.1.70.0040.00416.95
7.1.60.0040.00816.96
7.1.50.0270.04740.54
7.1.40.0130.01734.02
7.1.30.0230.01034.11
7.1.20.0130.01334.27
7.1.10.0030.01016.63
7.1.00.0070.00716.76
7.0.200.0000.01416.74
7.0.190.0030.05722.31
7.0.180.0070.00716.20
7.0.170.0000.01316.13
7.0.160.0000.01316.14
7.0.150.0030.01016.04
7.0.140.0030.00716.06
7.0.130.0030.00716.45
7.0.120.0000.01316.44
7.0.110.0070.00315.96
7.0.100.0030.00716.17
7.0.90.0030.00716.10
7.0.80.0070.00316.26
7.0.70.0000.01016.20
7.0.60.0070.00716.06
7.0.50.0030.00716.23
7.0.40.0000.01016.36
7.0.30.0030.00716.30
7.0.20.0030.01016.18
7.0.10.0070.00716.15
7.0.00.0030.01016.29

preferences:
33.02 ms | 400 KiB | 5 Q