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', '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.0100.01018.55
8.3.50.0090.00721.33
8.3.40.0140.00019.15
8.3.30.0000.01419.23
8.3.20.0040.00420.15
8.3.10.0100.00022.02
8.3.00.0050.00322.34
8.2.180.0040.01117.13
8.2.170.0080.00822.96
8.2.160.0110.00320.32
8.2.150.0080.00024.18
8.2.140.0150.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00019.79
8.2.110.0050.00520.52
8.2.100.0030.01017.91
8.2.90.0040.00419.17
8.2.80.0090.00017.97
8.2.70.0080.00017.75
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0040.00418.34
8.2.30.0040.00418.11
8.2.20.0070.00018.02
8.2.10.0000.00817.84
8.2.00.0000.00817.93
8.1.280.0110.00425.92
8.1.270.0000.01020.47
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.08
8.1.230.0120.00023.89
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0040.00417.60
8.1.190.0090.00017.53
8.1.180.0000.00718.71
8.1.170.0080.00018.68
8.1.160.0000.00722.12
8.1.150.0050.00318.83
8.1.140.0040.00417.47
8.1.130.0070.00017.91
8.1.120.0040.00417.61
8.1.110.0090.00017.64
8.1.100.0000.00717.51
8.1.90.0050.00317.62
8.1.80.0050.00317.50
8.1.70.0000.00717.62
8.1.60.0030.00517.59
8.1.50.0020.00517.59
8.1.40.0000.00717.62
8.1.30.0000.00817.70
8.1.20.0000.00817.71
8.1.10.0000.00717.70
8.1.00.0000.00817.54
8.0.300.0080.00018.77
8.0.290.0050.00317.18
8.0.280.0000.00718.39
8.0.270.0070.00017.30
8.0.260.0090.00017.12
8.0.250.0000.00717.22
8.0.240.0030.00517.13
8.0.230.0040.00417.30
8.0.220.0030.00317.22
8.0.210.0020.00517.08
8.0.200.0000.00617.25
8.0.190.0040.00417.13
8.0.180.0050.00317.09
8.0.170.0000.00917.20
8.0.160.0040.00417.01
8.0.150.0000.00717.11
8.0.140.0040.00417.16
8.0.130.0030.00313.48
8.0.120.0030.00517.11
8.0.110.0000.00817.22
8.0.100.0000.00717.13
8.0.90.0040.00417.04
8.0.80.0090.00617.12
8.0.70.0040.00417.05
8.0.60.0040.00417.24
8.0.50.0040.00417.21
8.0.30.0060.01317.38
8.0.20.0120.00517.50
8.0.10.0050.00317.27
8.0.00.0080.01017.03
7.4.330.0030.00315.00
7.4.320.0000.00716.59
7.4.300.0030.00316.64
7.4.290.0030.00316.73
7.4.280.0030.00316.68
7.4.270.0000.00716.60
7.4.260.0030.00316.70
7.4.250.0050.00216.62
7.4.240.0070.00016.63
7.4.230.0080.00016.57
7.4.220.0100.01416.71
7.4.210.0100.00416.54
7.4.200.0070.00016.79
7.4.190.0070.00016.73
7.4.160.0090.00616.66
7.4.150.0060.01217.40
7.4.140.0090.01117.86
7.4.130.0070.01116.72
7.4.120.0110.00616.79
7.4.110.0030.01316.73
7.4.100.0140.01016.63
7.4.90.0090.00916.55
7.4.80.0070.01019.39
7.4.70.0090.00916.66
7.4.60.0040.01216.61
7.4.50.0000.00416.50
7.4.40.0000.01422.77
7.4.30.0150.00316.66
7.4.00.0030.01214.96
7.3.330.0000.00613.52
7.3.320.0050.00013.49
7.3.310.0000.00716.48
7.3.300.0030.00316.47
7.3.290.0140.00016.43
7.3.280.0050.01016.48
7.3.270.0060.01617.40
7.3.260.0070.01016.51
7.3.250.0160.00616.65
7.3.240.0030.01416.44
7.3.230.0000.01916.43
7.3.210.0120.00816.61
7.3.200.0070.01019.39
7.3.190.0090.01216.61
7.3.180.0030.01316.44
7.3.170.0060.00916.57
7.3.160.0100.00616.52
7.3.120.0100.00714.94
7.2.330.0070.01016.47
7.2.320.0070.01116.93
7.2.310.0120.00616.93
7.2.300.0030.01316.64
7.2.290.0090.01616.94
7.2.60.0030.01216.88
7.2.00.0040.00419.73
7.1.200.0090.00615.97
7.1.100.0060.00617.96
7.1.70.0000.00817.13
7.1.60.0040.01919.82
7.1.50.0090.01216.98
7.1.00.0000.04722.37
7.0.200.0040.00416.73
7.0.140.0030.09022.09
7.0.60.0130.07319.76
7.0.50.0030.09017.87
7.0.40.0100.06020.24
7.0.30.0470.08020.24
7.0.20.0400.06720.07
7.0.10.0100.03320.08
7.0.00.0000.04720.20
5.6.280.0000.07720.93
5.6.210.0030.08720.57
5.6.200.0070.04018.23
5.6.190.0070.05320.65
5.6.180.0270.08720.63
5.6.170.0400.05020.45
5.6.160.0000.04720.43
5.6.150.0000.05018.14
5.6.140.0100.04318.19
5.6.130.0070.06718.17
5.6.120.0200.06321.12
5.6.110.0130.08320.89
5.6.100.0000.04720.96
5.6.90.0100.03720.95
5.6.80.0100.08020.52
5.6.70.4430.03720.42
5.5.350.0100.08720.53
5.5.340.0070.08318.04
5.5.330.0030.05320.44
5.5.320.0270.07720.26
5.5.310.0230.07020.26
5.5.300.0100.08317.99
5.5.290.0070.04317.98
5.5.280.0070.05020.87
5.5.270.0070.07320.96
5.5.260.0070.09020.93
5.5.250.0270.07020.69
5.5.240.0000.04020.04
5.4.450.0900.05719.17
5.4.440.0830.05019.48
5.4.430.1070.05019.55
5.4.420.0230.04319.33
5.4.410.0930.06319.22
5.4.400.0370.05318.81
5.4.390.0630.06718.80
5.4.380.0230.07018.77
5.4.370.0130.05318.50
5.4.360.0070.05718.79
5.4.350.0070.04912.02
5.4.340.0060.03712.02
5.4.320.0140.03612.51
5.4.310.0040.04012.50
5.4.300.0050.03712.51
5.4.290.0040.04212.50
5.4.280.0080.03312.40
5.4.270.0100.04012.40
5.4.260.0090.04212.40
5.4.250.0070.06018.79
5.4.240.0170.04018.77
5.4.230.0100.05018.64
5.4.220.0030.05718.89
5.4.210.0070.05018.78
5.4.200.0070.05318.72
5.4.190.0130.05718.88
5.4.180.0170.06718.91
5.4.170.0100.05018.95
5.4.160.0170.06018.91
5.4.150.0000.06018.90
5.4.140.0070.06716.41
5.4.130.0130.05316.36
5.4.120.0100.04716.37
5.4.110.0070.05016.30
5.4.100.0030.05016.46
5.4.90.0070.04716.49
5.4.80.0070.04716.52
5.4.70.0170.04316.37
5.4.60.0030.05016.27
5.4.50.0070.05016.49
5.4.40.0030.05316.52
5.4.30.0070.07716.45
5.4.20.0100.07316.49
5.4.10.0030.05016.58
5.4.00.0170.03715.92
5.3.290.0040.04312.80
5.3.280.0070.05014.59
5.3.270.0000.06314.57
5.3.260.0130.07314.69
5.3.250.0000.05714.63
5.3.240.0100.04714.62
5.3.230.0070.06714.68
5.3.220.0170.05314.66
5.3.210.0100.04714.75
5.3.200.0030.05014.65
5.3.190.0130.04714.55
5.3.180.0070.04714.73
5.3.170.0030.05014.56
5.3.160.0030.05014.63
5.3.150.0170.04314.64
5.3.140.0130.04314.63
5.3.130.0030.07314.55
5.3.120.0070.05014.45
5.3.110.0030.05314.45
5.3.100.0070.05014.10
5.3.90.0030.06314.04
5.3.80.0070.05014.11
5.3.70.0070.04714.00
5.3.60.0070.04714.21
5.3.50.0070.04313.96
5.3.40.0100.06713.95
5.3.30.0070.04714.00
5.3.20.0000.05313.91
5.3.10.0070.04713.63
5.3.00.0070.04713.63
5.2.170.0100.03311.15
5.2.160.0070.04011.14
5.2.150.0070.03711.10
5.2.140.0030.04711.11
5.2.130.0070.03711.29
5.2.120.0030.04311.28
5.2.110.0030.04711.18
5.2.100.0070.04711.32
5.2.90.0030.04011.08
5.2.80.0100.03310.92
5.2.70.0030.05711.17
5.2.60.0070.03711.05
5.2.50.0000.04311.11
5.2.40.0070.03710.91
5.2.30.0070.04011.05
5.2.20.0030.04010.94
5.2.10.0030.04011.02
5.2.00.0100.03710.70
5.1.60.0030.0339.83
5.1.50.0070.03010.08
5.1.40.0070.0339.97
5.1.30.0000.03710.28
5.1.20.0030.03710.42
5.1.10.0100.03010.06
5.1.00.0030.05010.33
5.0.50.0030.0278.78
5.0.40.0070.0238.66
5.0.30.0000.0438.22
5.0.20.0000.0308.24
5.0.10.0000.0308.09
5.0.00.0000.0438.13
4.4.90.0000.0276.69
4.4.80.0000.0236.69
4.4.70.0000.0306.69
4.4.60.0070.0276.69
4.4.50.0030.0206.69
4.4.40.0030.0336.69
4.4.30.0000.0206.69
4.4.20.0030.0306.69
4.4.10.0030.0206.69
4.4.00.0070.0376.69
4.3.110.0030.0206.69
4.3.100.0000.0236.69
4.3.90.0130.0106.69
4.3.80.0030.0306.69
4.3.70.0070.0276.69
4.3.60.0070.0176.69
4.3.50.0030.0206.69
4.3.40.0000.0476.69
4.3.30.0000.0236.69
4.3.20.0000.0336.69
4.3.10.0030.0206.69
4.3.00.0100.0237.11

preferences:
35.61 ms | 401 KiB | 5 Q