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 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.0110.00418.31
8.3.50.0100.00521.21
8.3.40.0090.01218.91
8.3.30.0090.00619.09
8.3.20.0050.00220.29
8.3.10.0090.00621.92
8.3.00.0040.00422.31
8.2.180.0140.00716.63
8.2.170.0120.00322.96
8.2.160.0100.00320.57
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.01226.16
8.2.120.0060.00319.66
8.2.110.0090.00020.38
8.2.100.0070.00419.31
8.2.90.0000.00819.40
8.2.80.0040.00419.38
8.2.70.0040.00417.88
8.2.60.0050.00318.03
8.2.50.0060.00318.07
8.2.40.0040.00418.34
8.2.30.0000.00818.01
8.2.20.0080.00017.84
8.2.10.0040.00417.77
8.2.00.0000.00817.80
8.1.280.0100.00325.92
8.1.270.0030.00520.53
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.96
8.1.230.0040.00719.21
8.1.220.0000.00817.75
8.1.210.0000.00818.77
8.1.200.0090.00017.48
8.1.190.0080.00017.54
8.1.180.0050.00318.72
8.1.170.0040.00418.64
8.1.160.0040.00422.06
8.1.150.0000.00718.65
8.1.140.0000.00717.49
8.1.130.0000.00817.89
8.1.120.0050.00317.52
8.1.110.0030.00617.47
8.1.100.0000.00817.64
8.1.90.0050.00317.64
8.1.80.0000.00817.59
8.1.70.0070.00017.46
8.1.60.0000.00717.67
8.1.50.0070.00017.58
8.1.40.0040.00417.60
8.1.30.0030.00517.68
8.1.20.0080.00017.63
8.1.10.0040.00417.59
8.1.00.0080.00017.51
8.0.300.0040.00418.77
8.0.290.0000.00917.28
8.0.280.0070.00018.44
8.0.270.0000.00717.25
8.0.260.0000.00617.02
8.0.250.0030.00317.18
8.0.240.0040.00417.16
8.0.230.0000.00717.18
8.0.220.0070.00017.00
8.0.210.0000.00716.98
8.0.200.0030.00317.21
8.0.190.0040.00417.07
8.0.180.0000.00717.16
8.0.170.0000.00817.17
8.0.160.0040.00417.03
8.0.150.0000.00817.11
8.0.140.0040.00417.07
8.0.130.0000.00713.39
8.0.120.0000.00817.03
8.0.110.0050.00216.99
8.0.100.0040.00417.05
8.0.90.0030.00617.05
8.0.80.0160.00617.00
8.0.70.0000.00716.99
8.0.60.0040.00416.98
8.0.50.0000.00716.96
8.0.30.0000.01917.29
8.0.20.0040.01417.40
8.0.10.0040.00417.09
8.0.00.0080.01116.89
7.4.330.0050.00015.26
7.4.320.0030.00316.69
7.4.300.0000.00716.61
7.4.290.0050.00516.69
7.4.280.0030.00316.59
7.4.270.0060.00016.72
7.4.260.0030.00316.67
7.4.250.0050.00216.64
7.4.240.0040.00416.65
7.4.230.0030.00316.79
7.4.220.0140.00316.52
7.4.210.0100.00916.71
7.4.200.0050.00216.50
7.4.190.0030.00316.75
7.4.160.0060.00916.53
7.4.150.0060.01217.40
7.4.140.0130.00517.86
7.4.130.0100.00816.67
7.4.120.0130.00516.60
7.4.110.0030.01316.54
7.4.100.0100.01216.66
7.4.90.0070.01016.66
7.4.80.0120.00919.39
7.4.70.0120.00616.82
7.4.60.0110.00716.43
7.4.50.0040.00416.69
7.4.40.0000.01522.77
7.4.30.0030.01716.61
7.4.00.0000.01415.31
7.3.330.0000.00513.30
7.3.320.0000.00513.36
7.3.310.0000.00716.34
7.3.300.0030.00316.39
7.3.290.0070.00716.44
7.3.280.0060.00816.49
7.3.270.0100.00717.40
7.3.260.0130.00616.57
7.3.250.0080.01016.52
7.3.240.0090.00916.56
7.3.230.0090.01016.64
7.3.210.0000.02116.57
7.3.200.0040.01219.39
7.3.190.0120.00916.36
7.3.180.0030.01316.35
7.3.170.0030.01316.55
7.3.160.0070.01016.41
7.3.120.0070.01014.88
7.3.110.0120.00314.97
7.3.100.0040.01015.20
7.3.90.0040.01214.95
7.3.80.0110.00414.87
7.3.70.0030.00915.02
7.3.60.0040.01114.84
7.3.50.0070.00314.98
7.3.40.0030.01014.73
7.3.30.0030.01014.57
7.3.20.0080.00816.75
7.3.10.0120.00416.57
7.3.00.0090.00716.44
7.2.330.0090.00916.61
7.2.320.0090.00917.05
7.2.310.0030.01416.42
7.2.300.0130.00316.65
7.2.290.0030.01416.66
7.2.240.0080.00414.93
7.2.230.0060.00315.07
7.2.220.0070.00415.50
7.2.210.0110.00315.34
7.2.200.0030.00514.74
7.2.190.0070.00414.71
7.2.180.0030.00715.23
7.2.170.0030.00914.79
7.2.160.0090.00314.88
7.2.150.0000.00917.10
7.2.140.0060.01016.95
7.2.130.0120.00716.65
7.2.120.0070.01016.82
7.2.110.0130.00416.82
7.2.100.0100.00916.85
7.2.90.0100.00816.76
7.2.80.0080.00716.66
7.2.70.0120.00516.68
7.2.60.0050.01016.95
7.2.50.0090.01116.91
7.2.40.0090.00916.95
7.2.30.0100.00816.99
7.2.20.0090.00816.91
7.2.10.0070.01016.74
7.2.00.0090.00817.58
7.1.330.0000.01315.99
7.1.320.0100.00315.62
7.1.310.0000.00915.97
7.1.300.0070.00715.76
7.1.290.0070.00715.57
7.1.280.0130.00015.80
7.1.270.0000.00716.02
7.1.260.0000.01015.97
7.1.250.0070.00615.72
7.1.200.0070.00416.04
7.1.100.0130.01017.98
7.1.70.0000.00817.39
7.1.60.0110.01419.82
7.1.50.0090.00917.16
7.1.00.0030.03322.28
7.0.200.0000.00916.91
7.0.140.0030.07022.11
7.0.60.0030.09019.92
7.0.50.0030.04317.95
7.0.40.0070.04020.21
7.0.30.0400.05020.12
7.0.20.0470.05020.30
7.0.10.0070.09020.12
7.0.00.0000.04320.30
5.6.280.0070.07020.99
5.6.210.0000.07720.61
5.6.200.0070.03718.19
5.6.190.0070.09020.48
5.6.180.0330.07720.43
5.6.170.0330.07020.46
5.6.160.0100.05020.46
5.6.150.0170.07318.14
5.6.140.0000.04318.14
5.6.130.0030.05018.27
5.6.120.0030.08721.15
5.6.110.0070.08320.99
5.6.100.0070.07021.19
5.6.90.0130.08321.00
5.6.80.0170.07320.38
5.6.70.3370.03320.39
5.5.350.0070.08020.43
5.5.340.0070.06318.10
5.5.330.0070.08720.21
5.5.320.0300.07320.21
5.5.310.0370.04720.30
5.5.300.0070.08017.98
5.5.290.0070.08717.95
5.5.280.0200.07720.85
5.5.270.0170.08020.76
5.5.260.0100.08320.89
5.5.250.0100.07320.71
5.5.240.0030.08720.13
5.4.450.0900.06319.56
5.4.440.0970.08719.48
5.4.430.0600.06319.19
5.4.420.0830.08019.57
5.4.410.0770.04719.45
5.4.400.0430.06718.88
5.4.390.0230.05318.75
5.4.380.0100.06018.52
5.4.370.0130.05318.59
5.4.360.0230.05718.78
5.4.350.0070.03812.02
5.4.340.0100.04512.02
5.4.320.0100.04012.51
5.4.310.0080.03912.50
5.4.300.0090.03912.50
5.4.290.0060.04112.50
5.4.280.0040.04812.40
5.4.270.0040.03612.40
5.4.260.0090.04312.40
5.4.250.0100.05018.80
5.4.240.0030.05718.88
5.4.230.0070.05718.98
5.4.220.0100.05718.96
5.4.210.0130.04718.97
5.4.200.0230.04019.05
5.4.190.0030.05719.05
5.4.180.0100.09718.99
5.4.170.0170.04318.87
5.4.160.0170.04718.86
5.4.150.0130.05018.86
5.4.140.0130.05316.37
5.4.130.0130.05316.36
5.4.120.0100.05016.34
5.4.110.0070.05316.48
5.4.100.0070.04716.50
5.4.90.0070.06316.40
5.4.80.0030.05316.34
5.4.70.0030.05316.35
5.4.60.0070.04716.47
5.4.50.0030.05016.46
5.4.40.0030.06316.53
5.4.30.0130.06316.58
5.4.20.0130.05716.57
5.4.10.0070.05316.58
5.4.00.0170.04715.90
5.3.290.0050.04212.80
5.3.280.0230.05714.68
5.3.270.0200.05714.43
5.3.260.0000.06014.61
5.3.250.0100.05314.69
5.3.240.0170.04714.78
5.3.230.0130.06014.42
5.3.220.0000.06014.55
5.3.210.0100.05014.54
5.3.200.0070.05014.65
5.3.190.0070.05314.57
5.3.180.0030.05014.74
5.3.170.0130.04314.55
5.3.160.0070.05014.64
5.3.150.0100.04714.65
5.3.140.0100.07014.64
5.3.130.0100.06014.56
5.3.120.0100.05014.53
5.3.110.0100.05714.56
5.3.100.0030.05313.93
5.3.90.0100.04314.09
5.3.80.0070.05714.23
5.3.70.0070.05013.98
5.3.60.0130.04314.02
5.3.50.0070.05014.11
5.3.40.0030.07714.02
5.3.30.0100.05014.08
5.3.20.0070.04713.68
5.3.10.0030.06713.86
5.3.00.0070.06013.62
5.2.170.0070.04311.22
5.2.160.0100.03711.31
5.2.150.0070.04011.32
5.2.140.0130.05011.13
5.2.130.0070.05711.27
5.2.120.0030.04011.18
5.2.110.0100.04311.08
5.2.100.0070.04011.05
5.2.90.0030.04311.18
5.2.80.0130.03711.17
5.2.70.0030.05711.16
5.2.60.0030.05711.06
5.2.50.0030.04311.09
5.2.40.0000.04710.95
5.2.30.0030.04310.97
5.2.20.0100.04710.94
5.2.10.0070.04010.82
5.2.00.0100.05310.79
5.1.60.0000.03710.20
5.1.50.0100.03010.09
5.1.40.0070.04010.03
5.1.30.0070.03310.16
5.1.20.0100.03310.33
5.1.10.0030.05010.02
5.1.00.0170.04010.02
5.0.50.0030.0308.52
5.0.40.0030.0278.50
5.0.30.0000.0478.22
5.0.20.0030.0278.39
5.0.10.0130.0178.32
5.0.00.0000.0608.08
4.4.90.0000.0236.58
4.4.80.0000.0236.58
4.4.70.0030.0236.58
4.4.60.0070.0176.58
4.4.50.0000.0236.58
4.4.40.0030.0336.58
4.4.30.0030.0306.58
4.4.20.0100.0176.58
4.4.10.0030.0306.58
4.4.00.0030.0336.58
4.3.110.0030.0206.58
4.3.100.0070.0176.58
4.3.90.0130.0106.58
4.3.80.0070.0406.58
4.3.70.0030.0206.58
4.3.60.0030.0206.58
4.3.50.0000.0236.58
4.3.40.0000.0436.58
4.3.30.0070.0276.58
4.3.20.0100.0206.58
4.3.10.0000.0236.58
4.3.00.0170.0177.11

preferences:
53.15 ms | 401 KiB | 5 Q