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', 'Y-m-d H:i:s', '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.0040.01118.05
8.3.50.0100.00921.14
8.3.40.0100.01018.98
8.3.30.0100.00719.15
8.3.20.0000.00720.33
8.3.10.0080.00021.92
8.3.00.0040.00422.45
8.2.180.0140.00716.75
8.2.170.0060.01222.96
8.2.160.0100.00320.16
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0030.01426.16
8.2.120.0050.00321.07
8.2.110.0100.00020.54
8.2.100.0110.00019.41
8.2.90.0040.00419.22
8.2.80.0030.00619.45
8.2.70.0030.00617.62
8.2.60.0020.00518.05
8.2.50.0000.00918.07
8.2.40.0040.00418.09
8.2.30.0080.00018.14
8.2.20.0070.00017.76
8.2.10.0050.00317.98
8.2.00.0040.00419.71
8.1.280.0110.00425.92
8.1.270.0040.00420.48
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0040.01423.70
8.1.230.0080.00419.07
8.1.220.0050.00317.76
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0000.00817.41
8.1.180.0030.00518.63
8.1.170.0040.00418.65
8.1.160.0040.00422.19
8.1.150.0080.00018.83
8.1.140.0040.00417.57
8.1.130.0030.00317.82
8.1.120.0000.00717.58
8.1.110.0030.00617.46
8.1.100.0070.00017.45
8.1.90.0000.00717.55
8.1.80.0020.00517.63
8.1.70.0030.00317.51
8.1.60.0040.00417.62
8.1.50.0050.00317.49
8.1.40.0000.00817.47
8.1.30.0030.00517.63
8.1.20.0080.00017.66
8.1.10.0040.00417.56
8.1.00.0030.00517.47
8.0.300.0060.00318.77
8.0.290.0000.00717.16
8.0.280.0040.00418.40
8.0.270.0000.00817.25
8.0.260.0030.00316.90
8.0.250.0070.00017.18
8.0.240.0000.00817.13
8.0.230.0030.00317.09
8.0.220.0000.00717.08
8.0.210.0000.00717.17
8.0.200.0030.00517.05
8.0.190.0050.00217.05
8.0.180.0000.00717.10
8.0.170.0000.00817.02
8.0.160.0040.00417.19
8.0.150.0080.00016.88
8.0.140.0000.00817.03
8.0.130.0000.00613.41
8.0.120.0000.00817.03
8.0.110.0040.00417.16
8.0.100.0000.00717.09
8.0.90.0000.00717.17
8.0.80.0030.01317.16
8.0.70.0070.00017.21
8.0.60.0070.00017.22
8.0.50.0070.00017.14
8.0.30.0140.00717.28
8.0.20.0100.00717.40
8.0.10.0070.00017.05
8.0.00.0090.01016.88
7.4.330.0020.00215.14
7.4.320.0040.00416.73
7.4.300.0000.00716.66
7.4.290.0000.01116.66
7.4.280.0000.00716.68
7.4.270.0000.00716.70
7.4.260.0030.00316.61
7.4.250.0070.00016.55
7.4.240.0030.00516.60
7.4.230.0060.00016.48
7.4.220.0120.00816.63
7.4.210.0050.01016.70
7.4.200.0030.00316.59
7.4.190.0000.00716.73
7.4.160.0070.00816.64
7.4.150.0170.00017.40
7.4.140.0090.01017.86
7.4.130.0100.00716.70
7.4.120.0050.01316.73
7.4.110.0160.00316.65
7.4.100.0120.00616.61
7.4.90.0030.01416.59
7.4.80.0070.01319.39
7.4.70.0130.00516.61
7.4.60.0060.01016.68
7.4.50.0000.00516.61
7.4.40.0170.00322.77
7.4.30.0080.01316.66
7.4.00.0060.00914.96
7.3.330.0030.00313.50
7.3.320.0000.00513.50
7.3.310.0000.00816.40
7.3.300.0030.00316.30
7.3.290.0040.01016.43
7.3.280.0100.00616.47
7.3.270.0030.01317.40
7.3.260.0120.00916.66
7.3.250.0130.00516.49
7.3.240.0140.00416.48
7.3.230.0080.01116.62
7.3.210.0060.01016.56
7.3.200.0060.01019.39
7.3.190.0100.01016.54
7.3.180.0000.01516.45
7.3.170.0100.00616.58
7.3.160.0030.01716.55
7.3.120.0060.00915.32
7.2.330.0060.01216.92
7.2.320.0130.00916.53
7.2.310.0100.00716.68
7.2.300.0060.01016.91
7.2.290.0160.00416.81
7.2.60.0000.01317.04
7.2.00.0070.01119.50
7.1.200.0050.00515.98
7.1.100.0040.00818.23
7.1.70.0060.00617.15
7.1.60.0100.01319.82
7.1.50.0070.01616.79
7.1.00.0000.06022.50
7.0.200.0030.00716.82
7.0.140.0030.07322.09
7.0.60.0070.06319.93
7.0.50.0130.08017.91
7.0.40.0030.04319.97
7.0.30.0170.09020.27
7.0.20.0200.04320.15
7.0.10.0130.05020.17
7.0.00.0070.04020.25
5.6.280.0000.07720.91
5.6.210.0000.09020.52
5.6.200.0030.04018.30
5.6.190.0130.07320.46
5.6.180.0400.08020.64
5.6.170.0400.03720.55
5.6.160.0100.04720.45
5.6.150.0100.07318.18
5.6.140.0030.04018.17
5.6.130.0030.04018.24
5.6.120.0100.06721.14
5.6.110.0130.08021.02
5.6.100.0100.08320.89
5.6.90.0100.08021.10
5.6.80.0100.07720.39
5.6.70.3230.03720.50
5.5.350.0070.08320.35
5.5.340.0100.07717.95
5.5.330.0100.07720.30
5.5.320.0300.06720.52
5.5.310.0330.06020.28
5.5.300.0030.05317.98
5.5.290.0030.08717.99
5.5.280.0130.07720.68
5.5.270.0100.05020.89
5.5.260.0130.08020.96
5.5.250.0000.08320.75
5.5.240.0130.06720.13
5.4.450.0870.05319.48
5.4.440.0800.08319.47
5.4.430.0800.05719.38
5.4.420.0370.04319.16
5.4.410.0800.05719.48
5.4.400.0230.06318.90
5.4.390.0400.06018.74
5.4.380.0270.05018.47
5.4.370.0070.05718.63
5.4.360.0100.05318.82
5.4.350.0110.05212.02
5.4.340.0130.05612.02
5.4.320.0070.03512.51
5.4.310.0070.04012.50
5.4.300.0060.03412.51
5.4.290.0070.03612.50
5.4.280.0060.03612.40
5.4.270.0050.03512.40
5.4.260.0060.04012.40
5.4.250.0130.04718.89
5.4.240.0070.06018.77
5.4.230.0100.07019.02
5.4.220.0070.05718.64
5.4.210.0130.06019.05
5.4.200.0100.05018.92
5.4.190.0070.05319.00
5.4.180.0070.05318.94
5.4.170.0130.04718.76
5.4.160.0130.05018.88
5.4.150.0070.05718.90
5.4.140.0100.04716.60
5.4.130.0130.04316.31
5.4.120.0100.04716.42
5.4.110.0170.06316.47
5.4.100.0030.05016.47
5.4.90.0070.05016.61
5.4.80.0030.05316.48
5.4.70.0100.05016.42
5.4.60.0170.05716.49
5.4.50.0000.05316.46
5.4.40.0170.04016.41
5.4.30.0170.06016.26
5.4.20.0100.07316.27
5.4.10.0130.04716.40
5.4.00.0200.04316.02
5.3.290.0100.04012.80
5.3.280.0100.06714.72
5.3.270.0130.04314.78
5.3.260.0070.05014.51
5.3.250.0070.05314.82
5.3.240.0070.05314.69
5.3.230.0030.05314.43
5.3.220.0070.05014.66
5.3.210.0030.06014.78
5.3.200.0070.05014.65
5.3.190.0030.06014.55
5.3.180.0100.04714.46
5.3.170.0070.05314.78
5.3.160.0070.05014.65
5.3.150.0130.05014.69
5.3.140.0100.04714.38
5.3.130.0100.06314.72
5.3.120.0100.05314.63
5.3.110.0070.07014.38
5.3.100.0170.06314.20
5.3.90.0030.05314.20
5.3.80.0030.05713.99
5.3.70.0070.05014.09
5.3.60.0000.06014.06
5.3.50.0030.06714.02
5.3.40.0000.06714.03
5.3.30.0030.07713.98
5.3.20.0170.04313.77
5.3.10.0070.06713.73
5.3.00.0030.05713.73
5.2.170.0070.04011.22
5.2.160.0100.05011.05
5.2.150.0130.04011.22
5.2.140.0070.04011.37
5.2.130.0170.04011.07
5.2.120.0200.04311.32
5.2.110.0200.02711.18
5.2.100.0030.05011.10
5.2.90.0100.03711.00
5.2.80.0170.03311.31
5.2.70.0170.04311.07
5.2.60.0070.04711.01
5.2.50.0030.04711.10
5.2.40.0030.04311.07
5.2.30.0130.03311.03
5.2.20.0100.05011.02
5.2.10.0030.04010.89
5.2.00.0100.04310.54
5.1.60.0100.03310.24
5.1.50.0030.0379.83
5.1.40.0130.02310.07
5.1.30.0070.04010.50
5.1.20.0030.04010.43
5.1.10.0070.03310.12
5.1.00.0100.0439.91
5.0.50.0000.0308.51
5.0.40.0000.0308.60
5.0.30.0070.0378.17
5.0.20.0070.0208.18
5.0.10.0000.0378.23
5.0.00.0030.0478.36
4.4.90.0100.0206.15
4.4.80.0030.0206.15
4.4.70.0000.0236.15
4.4.60.0000.0276.15
4.4.50.0000.0236.15
4.4.40.0000.0336.10
4.4.30.0070.0176.10
4.4.20.0070.0206.10
4.4.10.0030.0206.10
4.4.00.0100.0276.10
4.3.110.0030.0206.10
4.3.100.0030.0206.10
4.3.90.0000.0206.10
4.3.80.0070.0406.10
4.3.70.0000.0206.10
4.3.60.0070.0176.10
4.3.50.0030.0206.10
4.3.40.0030.0306.10
4.3.30.0070.0176.10
4.3.20.0000.0236.10
4.3.10.0000.0236.10
4.3.00.0070.0277.11

preferences:
39.48 ms | 400 KiB | 5 Q