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, $date, $timezone); return date_format($d, $to_format); } var_dump(converteData('d/m/Y H:i', 'd/m/Y H:i', '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.01518.53
8.3.50.0120.00721.14
8.3.40.0140.00719.04
8.3.30.0070.00719.10
8.3.20.0070.00020.38
8.3.10.0030.00621.96
8.3.00.0050.00322.39
8.2.180.0120.00318.66
8.2.170.0100.00322.96
8.2.160.0100.00320.35
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0100.00726.16
8.2.120.0080.00019.76
8.2.110.0030.00620.44
8.2.100.0000.01119.22
8.2.90.0000.00719.22
8.2.80.0040.00418.05
8.2.70.0030.00517.75
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0000.00818.16
8.2.30.0040.00418.23
8.2.20.0000.00818.02
8.2.10.0050.00217.91
8.2.00.0040.00417.84
8.1.280.0150.00025.92
8.1.270.0060.00320.54
8.1.260.0040.00426.35
8.1.250.0000.00928.09
8.1.240.0000.00923.91
8.1.230.0080.00319.04
8.1.220.0040.00417.89
8.1.210.0080.00018.77
8.1.200.0060.00317.47
8.1.190.0040.00417.78
8.1.180.0060.00318.82
8.1.170.0050.00318.62
8.1.160.0040.00422.10
8.1.150.0040.00418.83
8.1.140.0040.00417.64
8.1.130.0020.00517.92
8.1.120.0040.00417.52
8.1.110.0060.00317.57
8.1.100.0000.00717.63
8.1.90.0000.00817.66
8.1.80.0000.00817.64
8.1.70.0030.00317.53
8.1.60.0030.00517.74
8.1.50.0000.00717.61
8.1.40.0030.00517.59
8.1.30.0000.00717.60
8.1.20.0080.00017.68
8.1.10.0040.00417.54
8.1.00.0000.00817.55
8.0.300.0000.00818.77
8.0.290.0040.00417.30
8.0.280.0000.00718.52
8.0.270.0050.00317.26
8.0.260.0030.00517.09
8.0.250.0030.00317.23
8.0.240.0040.00417.17
8.0.230.0040.00417.25
8.0.220.0040.00417.16
8.0.210.0030.00317.18
8.0.200.0000.00617.14
8.0.190.0040.00417.21
8.0.180.0040.00417.20
8.0.170.0000.00817.18
8.0.160.0040.00417.05
8.0.150.0040.00417.20
8.0.140.0040.00417.10
8.0.130.0060.00013.62
8.0.120.0040.00417.10
8.0.110.0040.00417.18
8.0.100.0040.00417.21
8.0.90.0000.00717.03
8.0.80.0060.00917.17
8.0.70.0050.00217.01
8.0.60.0040.00417.07
8.0.50.0000.00717.03
8.0.30.0120.00817.18
8.0.20.0100.00817.45
8.0.10.0040.00417.23
8.0.00.0060.01116.82
7.4.330.0000.00515.00
7.4.320.0000.00716.60
7.4.300.0080.00016.59
7.4.290.0030.00316.54
7.4.280.0030.00516.66
7.4.270.0000.00716.67
7.4.260.0030.00316.51
7.4.250.0050.00216.64
7.4.240.0030.00516.63
7.4.230.0000.00716.57
7.4.220.0090.01316.69
7.4.210.0110.00516.66
7.4.200.0000.00716.48
7.4.190.0040.00416.63
7.4.160.0040.01216.69
7.4.150.0120.00617.40
7.4.140.0100.01017.86
7.4.130.0080.00916.78
7.4.120.0140.00816.83
7.4.110.0100.00716.86
7.4.100.0060.01116.85
7.4.90.0070.01116.61
7.4.80.0150.01319.39
7.4.70.0100.01316.64
7.4.60.0130.00316.59
7.4.50.0070.00016.62
7.4.40.0000.01422.77
7.4.30.0030.01416.97
7.4.00.0090.00314.86
7.3.330.0000.00513.36
7.3.320.0030.00313.52
7.3.310.0040.00416.56
7.3.300.0070.00016.55
7.3.290.0100.01016.52
7.3.280.0080.01016.48
7.3.270.0170.00717.40
7.3.260.0110.00816.51
7.3.250.0090.01216.55
7.3.240.0130.00316.54
7.3.230.0150.00916.41
7.3.210.0120.00616.40
7.3.200.0120.01019.39
7.3.190.0120.00816.64
7.3.180.0130.00316.40
7.3.170.0090.00616.65
7.3.160.0060.01016.61
7.3.120.0090.00414.75
7.2.330.0130.00316.52
7.2.320.0060.01516.50
7.2.310.0000.01916.95
7.2.300.0070.01117.06
7.2.290.0240.00016.89
7.2.00.0060.00919.39
7.1.100.0060.00618.02
7.1.70.0000.00717.12
7.1.60.0110.01419.82
7.1.50.0070.01417.09
7.1.00.0000.07022.30
7.0.200.0000.00816.94
7.0.140.0130.06322.00
7.0.60.0070.08319.88
7.0.50.0030.06017.73
7.0.40.0100.08720.11
7.0.30.0270.07720.26
7.0.20.0230.04020.09
7.0.10.0270.04320.08
7.0.00.0070.04720.21
5.6.280.0000.07721.09
5.6.210.0070.04020.65
5.6.200.0030.04018.28
5.6.190.0030.06020.54
5.6.180.3030.06320.52
5.6.170.0430.07020.48
5.6.160.0270.06720.50
5.6.150.0030.07018.14
5.6.140.0100.07718.29
5.6.130.0100.05718.15
5.6.120.0100.04721.14
5.6.110.0000.05321.14
5.6.100.0170.06720.96
5.6.90.0070.04020.98
5.6.80.0100.03320.40
5.5.350.0100.08320.53
5.5.340.0070.08317.95
5.5.330.0070.08720.45
5.5.320.0200.08020.34
5.5.310.0330.05720.28
5.5.300.0070.07717.92
5.5.290.0030.08317.98
5.5.280.0100.07720.73
5.5.270.0200.07320.77
5.5.260.0100.08020.87
5.5.250.0130.07020.78
5.5.240.0100.07720.23
5.4.450.0370.06019.59
5.4.440.0800.07019.30
5.4.430.0970.05019.36
5.4.420.1030.06019.63
5.4.410.0930.07319.34
5.4.400.0500.06018.49
5.4.390.0500.06718.78
5.4.380.0230.05318.53
5.4.370.0100.05318.81
5.4.360.0130.05018.70
5.4.350.0050.03912.02
5.4.340.0050.03512.01
5.4.320.0070.04412.50
5.4.310.0080.03612.50
5.4.300.0080.04512.50
5.4.290.0070.04412.50
5.4.280.0050.03612.40
5.4.270.0050.04012.40
5.4.260.0020.04112.40
5.4.250.0030.05718.93
5.4.240.0070.05318.89
5.4.230.0000.05718.77
5.4.220.0000.06018.89
5.4.210.0230.06319.00
5.4.200.0100.05318.98
5.4.190.0100.04718.64
5.4.180.0130.06318.96
5.4.170.0130.04718.78
5.4.160.0100.05318.71
5.4.150.0070.05718.88
5.4.140.0100.04716.37
5.4.130.0000.06016.40
5.4.120.0070.05316.34
5.4.110.0170.04316.37
5.4.100.0100.05016.49
5.4.90.0070.07016.43
5.4.80.0170.03716.34
5.4.70.0100.05016.45
5.4.60.0170.03716.43
5.4.50.0030.05016.30
5.4.40.0170.05316.47
5.4.30.0030.05016.48
5.4.20.0100.05716.48
5.4.10.0130.04316.41
5.4.00.0000.05715.85
5.3.290.0080.04512.80
5.3.280.0070.06014.58
5.3.270.0100.05014.61
5.3.260.0030.05314.58
5.3.250.0000.05714.59
5.3.240.0130.04314.66
5.3.230.0070.06714.68
5.3.220.0130.04314.57
5.3.210.0030.06014.79
5.3.200.0100.05014.70
5.3.190.0070.05014.54
5.3.180.0000.06014.39
5.3.170.0100.04314.73
5.3.160.0100.04314.74
5.3.150.0070.05314.74
5.3.140.0170.04014.53
5.3.130.0070.05014.55
5.3.120.0070.05014.68
5.3.110.0070.05014.52
5.3.100.0100.05014.01
5.3.90.0100.04313.98
5.3.80.0000.05714.20
5.3.70.0070.04713.85
5.3.60.0070.05713.97
5.3.50.0100.05313.95
5.3.40.0070.06714.17
5.3.30.0000.05013.89
5.3.20.0100.05013.72
5.3.10.0030.05013.73
5.3.00.0070.04713.61
5.2.170.0070.04011.21
5.2.160.0000.04311.21
5.2.150.0030.04311.13
5.2.140.0100.03311.22
5.2.130.0170.02711.32
5.2.120.0100.03711.11
5.2.110.0100.03311.10
5.2.100.0030.04011.31
5.2.90.0070.03711.06
5.2.80.0100.03311.27
5.2.70.0030.04311.04
5.2.60.0100.05011.04
5.2.50.0130.04011.01
5.2.40.0030.04310.83
5.2.30.0070.04011.07
5.2.20.0030.04010.94
5.2.10.0070.03311.03
5.2.00.0030.05310.54
5.1.60.0030.03310.05
5.1.50.0100.0409.91
5.1.40.0000.0379.96
5.1.30.0100.03010.39
5.1.20.0000.04010.51
5.1.10.0030.03310.14
5.1.00.0070.04010.14
5.0.50.0030.0278.59
5.0.40.0030.0238.45
5.0.30.0030.0408.27
5.0.20.0000.0278.26
5.0.10.0030.0278.21
5.0.00.0030.0538.18
4.4.90.0030.0276.70
4.4.80.0000.0306.70
4.4.70.0030.0206.70
4.4.60.0070.0236.70
4.4.50.0000.0236.70
4.4.40.0030.0336.70
4.4.30.0030.0206.70
4.4.20.0000.0236.70
4.4.10.0000.0276.70
4.4.00.0000.0476.70
4.3.110.0000.0236.70
4.3.100.0030.0206.70
4.3.90.0070.0236.70
4.3.80.0000.0336.70
4.3.70.0070.0176.70
4.3.60.0030.0176.70
4.3.50.0000.0306.70
4.3.40.0030.0306.70
4.3.30.0070.0176.70
4.3.20.0000.0236.70
4.3.10.0000.0276.70
4.3.00.0100.0277.11

preferences:
49.35 ms | 401 KiB | 5 Q