3v4l.org

run code in 300+ PHP versions simultaneously
<?php function converteData($format, $to_format, $time, $timezone = null) { if (!$timezone) { $timezone = new DateTimeZone(date_default_timezone_get()); } $d = date_create_from_format($format, $time, $timezone); return date_format($d, $to_format); } var_dump(converteData('d/m/Y', 'd/m/Y', '06/11/1992'));

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.00618.68
8.3.50.0120.00321.20
8.3.40.0150.00019.13
8.3.30.0100.00319.22
8.3.20.0040.00420.20
8.3.10.0090.00021.92
8.3.00.0050.00222.46
8.2.180.0070.01016.50
8.2.170.0190.00322.96
8.2.160.0030.01020.52
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0060.01226.16
8.2.120.0080.00019.79
8.2.110.0030.00619.31
8.2.100.0080.00417.91
8.2.90.0040.00419.22
8.2.80.0000.00917.97
8.2.70.0040.00417.75
8.2.60.0050.00518.03
8.2.50.0050.00318.07
8.2.40.0000.00818.16
8.2.30.0000.00718.02
8.2.20.0000.00717.71
8.2.10.0030.00517.87
8.2.00.0000.00717.86
8.1.280.0130.01325.92
8.1.270.0080.00020.40
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00321.43
8.1.230.0040.00817.52
8.1.220.0030.00517.78
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0040.00417.47
8.1.180.0060.00318.74
8.1.170.0000.00818.62
8.1.160.0070.00022.06
8.1.150.0040.00418.76
8.1.140.0000.00817.52
8.1.130.0030.00517.89
8.1.120.0000.00717.54
8.1.110.0030.00617.47
8.1.100.0070.00017.56
8.1.90.0050.00217.57
8.1.80.0040.00417.64
8.1.70.0040.00417.54
8.1.60.0050.00317.69
8.1.50.0080.00017.64
8.1.40.0040.00417.57
8.1.30.0000.00717.69
8.1.20.0000.00917.73
8.1.10.0000.00817.60
8.1.00.0040.00417.61
8.0.300.0050.00318.77
8.0.290.0000.00716.75
8.0.280.0000.00818.57
8.0.270.0030.00617.03
8.0.260.0040.00417.03
8.0.250.0070.00017.17
8.0.240.0050.00317.13
8.0.230.0000.00617.18
8.0.220.0050.00317.00
8.0.210.0040.00417.06
8.0.200.0000.00817.13
8.0.190.0070.00017.13
8.0.180.0030.00517.14
8.0.170.0080.00017.13
8.0.160.0040.00417.08
8.0.150.0040.00417.06
8.0.140.0000.00717.12
8.0.130.0060.00013.46
8.0.120.0000.00816.95
8.0.110.0030.00516.99
8.0.100.0040.00417.13
8.0.90.0000.00716.99
8.0.80.0100.00717.09
8.0.70.0050.00217.12
8.0.60.0000.00716.88
8.0.50.0040.00417.11
8.0.30.0090.01317.27
8.0.20.0080.01017.40
8.0.10.0030.00717.17
8.0.00.0100.01016.92
7.4.330.0000.00515.03
7.4.320.0060.00016.69
7.4.300.0070.00016.62
7.4.290.0050.00316.64
7.4.280.0050.00316.67
7.4.270.0030.00316.58
7.4.260.0030.00316.57
7.4.250.0070.00016.68
7.4.240.0030.00516.57
7.4.230.0000.00616.54
7.4.220.0170.00016.61
7.4.210.0070.00716.71
7.4.200.0030.00316.61
7.4.190.0030.00316.56
7.4.160.0090.00616.67
7.4.150.0080.00817.40
7.4.140.0130.00717.86
7.4.130.0120.00616.56
7.4.120.0130.00616.79
7.4.110.0070.01016.68
7.4.100.0110.00716.56
7.4.90.0070.01016.56
7.4.80.0090.00919.39
7.4.70.0110.00616.79
7.4.60.0160.00616.43
7.4.50.0030.00616.29
7.4.40.0040.01122.77
7.4.30.0120.01616.73
7.4.00.0000.01715.18
7.3.330.0000.00613.22
7.3.320.0000.00513.34
7.3.310.0040.00416.54
7.3.300.0000.00616.46
7.3.290.0110.00316.45
7.3.280.0060.01116.44
7.3.270.0100.00717.40
7.3.260.0140.01016.30
7.3.250.0120.00616.49
7.3.240.0120.01316.51
7.3.230.0110.00816.43
7.3.210.0170.00616.63
7.3.200.0160.00719.39
7.3.190.0090.01216.46
7.3.180.0070.00716.66
7.3.170.0090.01216.60
7.3.160.0060.00916.43
7.3.120.0070.00714.90
7.2.330.0060.01116.97
7.2.320.0130.01016.88
7.2.310.0100.00716.55
7.2.300.0120.00616.72
7.2.290.0170.00716.96
7.2.60.0040.01116.96
7.2.00.0080.00819.68
7.1.200.0030.00615.66
7.1.100.0000.01718.49
7.1.70.0070.00017.09
7.1.60.0130.00919.82
7.1.50.0120.00917.09
7.1.00.0070.06322.57
7.0.200.0000.00816.81
7.0.140.0070.07022.05
7.0.60.0000.05320.02
7.0.50.0200.07317.97
7.0.40.0070.07320.18
7.0.30.0230.08020.26
7.0.20.0270.04720.16
7.0.10.0500.06320.25
7.0.00.0030.04320.29
5.6.280.0030.07020.92
5.6.210.0130.07020.71
5.6.200.0000.04318.19
5.6.190.0030.09020.57
5.6.180.4270.04020.68
5.6.170.0430.07020.50
5.6.160.0170.07320.50
5.6.150.0130.06018.18
5.6.140.0100.05318.14
5.6.130.0000.08318.24
5.6.120.0000.09021.04
5.6.110.0000.04721.10
5.6.100.0130.05720.96
5.6.90.0200.06721.02
5.6.80.0030.04020.40
5.5.350.0200.08020.30
5.5.340.0030.04317.99
5.5.330.0070.05020.43
5.5.320.0170.04720.38
5.5.310.0170.04720.26
5.5.300.0070.07718.08
5.5.290.0030.06317.99
5.5.280.0000.04320.89
5.5.270.0070.08720.86
5.5.260.0170.07320.73
5.5.250.0100.07020.69
5.5.240.0100.07320.19
5.4.450.0900.07019.20
5.4.440.0930.04719.48
5.4.430.0870.04719.46
5.4.420.0900.06019.42
5.4.410.0930.05719.45
5.4.400.0370.06018.75
5.4.390.0530.06018.80
5.4.380.0300.05018.76
5.4.370.0270.04018.67
5.4.360.0230.06018.72
5.4.350.0050.04012.02
5.4.340.0050.03712.02
5.4.320.0070.04212.50
5.4.310.0070.04212.50
5.4.300.0080.03312.50
5.4.290.0080.04112.50
5.4.280.0050.03712.40
5.4.270.0050.03612.40
5.4.260.0050.03812.40
5.4.250.0200.06718.77
5.4.240.0100.05018.73
5.4.230.0100.07718.96
5.4.220.0170.05018.77
5.4.210.0100.06718.91
5.4.200.0100.07718.93
5.4.190.0030.07318.78
5.4.180.0070.05318.77
5.4.170.0230.05318.87
5.4.160.0130.04318.77
5.4.150.0100.05318.90
5.4.140.0100.05016.40
5.4.130.0100.07316.47
5.4.120.0030.05316.32
5.4.110.0170.04016.50
5.4.100.0070.06316.51
5.4.90.0100.04716.37
5.4.80.0100.04716.32
5.4.70.0100.04716.32
5.4.60.0100.04716.47
5.4.50.0030.05016.30
5.4.40.0000.05316.49
5.4.30.0000.07316.27
5.4.20.0100.04316.38
5.4.10.0170.04316.47
5.4.00.0130.04315.78
5.3.290.0030.05112.80
5.3.280.0000.05714.81
5.3.270.0070.05314.69
5.3.260.0000.06014.69
5.3.250.0170.06714.59
5.3.240.0130.04714.57
5.3.230.0070.05014.61
5.3.220.0070.05014.40
5.3.210.0130.04714.79
5.3.200.0170.05014.54
5.3.190.0100.04714.55
5.3.180.0130.04714.55
5.3.170.0100.05014.74
5.3.160.0100.05314.73
5.3.150.0170.04314.58
5.3.140.0000.06014.57
5.3.130.0100.05314.69
5.3.120.0130.05314.77
5.3.110.0000.06314.65
5.3.100.0070.05014.21
5.3.90.0000.05314.23
5.3.80.0000.05314.09
5.3.70.0130.04714.11
5.3.60.0100.06714.09
5.3.50.0130.04714.04
5.3.40.0100.07013.79
5.3.30.0100.06713.87
5.3.20.0030.05313.68
5.3.10.0100.05313.65
5.3.00.0130.05313.82
5.2.170.0070.04011.30
5.2.160.0070.06011.11
5.2.150.0070.04311.22
5.2.140.0070.04011.23
5.2.130.0070.05711.19
5.2.120.0070.06011.01
5.2.110.0030.04011.18
5.2.100.0030.04011.18
5.2.90.0100.03711.27
5.2.80.0000.04311.07
5.2.70.0030.04311.06
5.2.60.0100.03711.05
5.2.50.0130.03011.11
5.2.40.0030.04011.09
5.2.30.0030.07010.94
5.2.20.0000.04310.92
5.2.10.0070.03710.71
5.2.00.0100.03310.80
5.1.60.0000.03710.05
5.1.50.0030.03310.06
5.1.40.0030.0509.95
5.1.30.0070.03710.41
5.1.20.0070.03310.32
5.1.10.0070.03310.03
5.1.00.0070.03310.04
5.0.50.0030.0308.46
5.0.40.0000.0308.41
5.0.30.0030.0438.05
5.0.20.0070.0238.14
5.0.10.0000.0308.22
5.0.00.0030.0408.40
4.4.90.0030.0206.70
4.4.80.0000.0236.70
4.4.70.0030.0206.70
4.4.60.0100.0136.70
4.4.50.0000.0236.70
4.4.40.0070.0306.70
4.4.30.0000.0276.70
4.4.20.0070.0176.70
4.4.10.0000.0236.70
4.4.00.0000.0436.70
4.3.110.0070.0176.70
4.3.100.0000.0236.70
4.3.90.0000.0236.70
4.3.80.0070.0406.70
4.3.70.0030.0206.70
4.3.60.0030.0306.70
4.3.50.0070.0176.70
4.3.40.0070.0276.70
4.3.30.0130.0276.70
4.3.20.0030.0306.70
4.3.10.0030.0306.70
4.3.00.0030.0207.11

preferences:
53.47 ms | 400 KiB | 5 Q