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.0090.00618.68
8.3.50.0090.00616.75
8.3.40.0070.01119.42
8.3.30.0060.00919.06
8.3.20.0090.00020.80
8.3.10.0040.00422.43
8.3.00.0050.00323.02
8.2.180.0100.01016.88
8.2.170.0120.00322.96
8.2.160.0110.00419.77
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0080.00020.89
8.2.120.0050.00226.35
8.2.110.0060.00321.53
8.2.100.0040.00718.37
8.2.90.0000.00819.55
8.2.80.0040.00418.30
8.2.70.0080.00018.13
8.2.60.0060.00318.41
8.2.50.0040.00418.47
8.2.40.0000.00820.79
8.2.30.0000.00719.55
8.2.20.0040.00418.50
8.2.10.0040.00418.43
8.2.00.0070.00018.63
8.1.280.0000.01425.92
8.1.270.0060.00324.38
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00321.42
8.1.230.0030.00719.66
8.1.220.0040.00418.02
8.1.210.0000.00818.77
8.1.200.0000.00917.73
8.1.190.0080.00017.60
8.1.180.0030.00618.10
8.1.170.0040.00419.07
8.1.160.0020.00519.21
8.1.150.0000.00720.43
8.1.140.0000.00719.80
8.1.130.0070.00019.21
8.1.120.0000.00717.64
8.1.110.0050.00317.61
8.1.100.0040.00417.64
8.1.90.0080.00017.63
8.1.80.0000.00717.50
8.1.70.0040.00417.66
8.1.60.0040.00417.81
8.1.50.0000.00817.75
8.1.40.0050.00317.80
8.1.30.0040.00417.75
8.1.20.0040.00417.89
8.1.10.0000.00717.93
8.1.00.0000.00817.65
8.0.300.0070.00020.71
8.0.290.0000.00817.25
8.0.280.0050.00318.75
8.0.270.0040.00417.68
8.0.260.0000.00619.48
8.0.250.0070.00017.36
8.0.240.0040.00417.50
8.0.230.0000.00717.30
8.0.220.0030.00317.43
8.0.210.0030.00517.35
8.0.200.0000.00617.52
8.0.190.0000.00817.39
8.0.180.0030.00617.36
8.0.170.0050.00317.39
8.0.160.0000.00717.29
8.0.150.0090.00317.22
8.0.140.0030.00317.35
8.0.130.0000.00513.76
8.0.120.0000.00717.26
8.0.110.0000.00717.27
8.0.100.0070.00017.30
8.0.90.0070.00017.20
8.0.80.0060.00917.24
8.0.70.0030.00617.09
8.0.60.0040.00417.20
8.0.50.0000.00717.18
8.0.30.0060.01117.28
8.0.20.0090.01017.45
8.0.10.0040.00417.31
8.0.00.0090.01217.24
7.4.330.0000.00515.55
7.4.320.0060.00016.92
7.4.300.0070.00016.78
7.4.290.0070.00016.89
7.4.280.0080.00016.80
7.4.270.0030.00316.96
7.4.260.0040.00416.95
7.4.250.0000.00716.91
7.4.240.0000.00816.99
7.4.230.0040.00416.68
7.4.220.0140.01016.93
7.4.210.0100.00317.03
7.4.200.0000.00816.93
7.4.160.0040.01317.09
7.4.150.0100.00717.40
7.4.140.0110.01117.86
7.4.130.0150.00616.70
7.4.120.0150.00917.01
7.4.110.0110.00616.86
7.4.100.0040.01316.93
7.4.90.0130.01016.92
7.4.80.0080.00819.39
7.4.70.0100.01016.94
7.4.60.0110.00816.96
7.4.50.0070.00716.71
7.4.40.0090.00616.96
7.4.30.0070.01416.96
7.4.00.0070.01015.09
7.3.330.0030.00313.31
7.3.320.0000.00513.32
7.3.310.0000.00716.62
7.3.300.0000.00716.57
7.3.290.0090.00616.58
7.3.280.0080.00816.55
7.3.270.0090.00917.40
7.3.260.0120.00716.61
7.3.240.0120.00816.75
7.3.230.0150.00416.82
7.3.210.0150.00616.65
7.3.200.0110.00716.63
7.3.190.0060.01016.77
7.3.180.0060.01016.82
7.3.170.0090.01216.57
7.3.160.0030.01316.71
7.2.330.0060.01216.99
7.2.320.0070.01016.68
7.2.310.0130.00317.10
7.2.300.0140.00816.73
7.2.290.0180.00616.89
7.2.60.0090.00616.64
7.2.00.0160.00019.00
7.1.200.0030.01215.92
7.1.100.0080.00318.18
7.1.70.0000.00817.23
7.1.60.0070.00717.32
7.1.50.0130.07740.80
7.1.40.0170.01334.09
7.1.30.0200.00734.10
7.1.20.0130.01334.43
7.1.10.0000.01016.69
7.1.00.0030.00716.63
7.0.200.0070.00317.17
7.0.190.0070.06022.24
7.0.180.0030.01016.03
7.0.170.0070.00716.18
7.0.160.0030.01016.35
7.0.150.0000.01016.28
7.0.140.0030.00716.09
7.0.130.0030.01016.45
7.0.120.0030.01016.44
7.0.110.0030.01016.38
7.0.100.0030.00716.16
7.0.90.0000.01316.16
7.0.80.0030.01016.32
7.0.70.0130.00316.24
7.0.60.0070.00716.13
7.0.50.0030.01016.23
7.0.40.0070.00716.29
7.0.30.0070.00716.35
7.0.20.0030.01016.33
7.0.10.0030.01016.29
7.0.00.0000.01016.30

preferences:
60.42 ms | 400 KiB | 5 Q