3v4l.org

run code in 300+ PHP versions simultaneously
<?php function converteData($format, $to_format, $date, $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); } /* * Exemplos */ var_dump(converteData('d m Y', 'Y-m-d', '06 02 2025'));

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.27
8.3.50.0110.00421.27
8.3.40.0130.00318.78
8.3.30.0030.01019.12
8.3.20.0000.00720.34
8.3.10.0050.00321.97
8.3.00.0000.00822.43
8.2.180.0040.01116.49
8.2.170.0070.00722.96
8.2.160.0070.00720.35
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.01126.16
8.2.120.0050.00319.67
8.2.110.0060.00322.27
8.2.100.0030.00719.34
8.2.90.0040.00419.21
8.2.80.0040.00419.22
8.2.70.0060.00317.61
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0040.00417.92
8.2.30.0050.00318.01
8.2.20.0000.00817.73
8.2.10.0020.00517.75
8.2.00.0040.00417.98
8.1.280.0120.00325.92
8.1.270.0090.00020.58
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0100.00023.92
8.1.230.0000.01119.04
8.1.220.0000.00717.78
8.1.210.0000.00818.77
8.1.200.0030.00617.50
8.1.190.0040.00417.39
8.1.180.0000.00818.86
8.1.170.0050.00318.67
8.1.160.0000.00722.14
8.1.150.0000.00718.79
8.1.140.0040.00417.59
8.1.130.0000.00717.80
8.1.120.0030.00317.58
8.1.110.0030.00617.61
8.1.100.0080.00017.55
8.1.90.0000.00717.52
8.1.80.0000.00717.47
8.1.70.0000.00817.52
8.1.60.0000.00817.66
8.1.50.0000.00817.56
8.1.40.0040.00417.47
8.1.30.0000.00717.71
8.1.20.0030.00517.75
8.1.10.0040.00417.59
8.1.00.0050.00317.56
8.0.300.0000.00818.77
8.0.290.0070.00017.17
8.0.280.0040.00418.54
8.0.270.0020.00517.33
8.0.260.0040.00417.10
8.0.250.0040.00417.10
8.0.240.0050.00317.13
8.0.230.0000.00717.16
8.0.220.0030.00317.11
8.0.210.0000.00816.99
8.0.200.0030.00317.18
8.0.190.0040.00417.04
8.0.180.0040.00417.14
8.0.170.0040.00417.14
8.0.160.0080.00017.02
8.0.150.0040.00417.07
8.0.140.0070.00017.04
8.0.130.0000.00613.41
8.0.120.0040.00416.97
8.0.110.0040.00417.00
8.0.100.0040.00417.16
8.0.90.0030.00516.92
8.0.80.0000.01517.05
8.0.70.0030.00516.90
8.0.60.0070.00017.14
8.0.50.0000.00716.90
8.0.30.0100.00817.24
8.0.20.0090.00917.40
8.0.10.0000.00717.00
8.0.00.0110.00816.93
7.4.330.0000.00515.00
7.4.320.0060.00016.45
7.4.300.0070.00016.74
7.4.290.0030.00316.64
7.4.280.0000.00716.52
7.4.270.0000.00716.49
7.4.260.0030.00316.70
7.4.250.0070.00016.51
7.4.240.0040.00416.61
7.4.230.0070.00016.47
7.4.220.0060.01216.71
7.4.210.0080.00716.68
7.4.200.0040.00416.62
7.4.190.0000.00816.71
7.4.160.0070.00716.52
7.4.150.0100.00717.40
7.4.140.0150.00517.86
7.4.130.0110.00516.69
7.4.120.0050.01216.72
7.4.110.0150.00616.62
7.4.100.0080.00816.63
7.4.90.0070.01016.57
7.4.80.0040.01316.67
7.4.70.0100.00716.59
7.4.60.0070.01416.54
7.4.50.0040.00416.52
7.4.40.0000.01622.77
7.4.30.0120.00816.42
7.4.00.0070.00715.10
7.3.330.0000.00613.41
7.3.320.0030.00313.29
7.3.310.0000.00816.45
7.3.300.0070.00016.38
7.3.290.0090.00616.37
7.3.280.0070.01216.44
7.3.270.0130.00617.40
7.3.260.0150.00816.57
7.3.250.0110.01016.67
7.3.240.0140.00316.88
7.3.230.0170.00716.73
7.3.210.0170.00016.48
7.3.200.0080.01119.39
7.3.190.0070.01016.41
7.3.180.0060.00916.47
7.3.170.0060.01116.48
7.3.160.0040.01116.49
7.3.120.0070.00414.82
7.3.10.0000.01416.74
7.3.00.0040.00917.03
7.2.330.0070.01016.70
7.2.320.0030.01416.86
7.2.310.0070.01016.63
7.2.300.0170.00016.74
7.2.290.0120.00916.55
7.2.130.0030.00816.96
7.2.120.0070.00416.89
7.2.110.0060.01016.82
7.2.100.0030.00616.67
7.2.90.0030.00916.87
7.2.80.0030.00916.99
7.2.70.0100.00316.84
7.2.60.0030.01117.10
7.2.50.0090.00616.97
7.2.40.0040.01017.05
7.2.30.0040.01216.94
7.2.20.0070.00716.86
7.2.10.0030.00916.98
7.2.00.0030.00916.95
7.1.250.0050.00515.69
7.1.200.0030.00915.54
7.1.70.0000.01716.98
7.1.60.0070.00417.32
7.1.50.0100.01017.18
7.1.00.0000.06322.51
7.0.200.0050.00817.08
7.0.140.0070.07321.99
7.0.60.0130.07019.91
7.0.50.0070.08017.92
7.0.40.0200.07020.15
7.0.30.0200.05720.09
7.0.20.0330.07020.06
7.0.10.0100.08720.19
7.0.00.0030.04020.16
5.6.280.0100.06721.07
5.6.210.0030.04020.73
5.6.200.0100.04718.22
5.6.190.0100.04020.47
5.6.180.0270.04020.57
5.6.170.0270.08320.59
5.6.160.0030.05320.48
5.6.150.0030.06718.16
5.6.140.0030.04718.21
5.6.130.0070.08318.17
5.6.120.0130.05320.97
5.6.110.0030.04020.98
5.6.100.0130.08021.12
5.6.90.0000.05321.11
5.6.80.0170.05720.36
5.5.350.0230.07720.33
5.5.340.0130.07718.09
5.5.330.0070.08720.56
5.5.320.0300.07320.34
5.5.310.0370.07020.37
5.5.300.0070.08018.03
5.5.290.0030.08318.04
5.5.280.0100.04020.77
5.5.270.0100.08020.72
5.5.260.0070.08320.77
5.5.250.0100.06320.58
5.5.240.0070.03320.07
5.4.450.0730.06019.61
5.4.440.0700.05019.17
5.4.430.0100.05319.68
5.4.420.0170.05319.53
5.4.410.0100.05318.70
5.4.400.0170.04718.82
5.4.390.0170.04718.81
5.4.380.0070.06018.59
5.4.370.0130.05018.76
5.4.360.0200.04318.79
5.4.350.0120.04812.02
5.4.340.0110.05312.01
5.4.320.0070.03912.50
5.4.310.0040.04912.50
5.4.300.0070.04312.51
5.4.290.0060.03712.50
5.4.280.0080.03812.39
5.4.270.0080.04112.40
5.4.260.0080.04212.39
5.4.250.0070.05318.96
5.4.240.0000.05719.05
5.4.230.0070.05018.89
5.4.220.0130.05319.05
5.4.210.0170.06718.88
5.4.200.0130.04318.75
5.4.190.0100.07718.89
5.4.180.0170.06318.93
5.4.170.0070.05318.96
5.4.160.0200.06019.04
5.4.150.0030.08318.77
5.4.140.0100.04716.40
5.4.130.0130.04716.38
5.4.120.0100.04716.38
5.4.110.0070.06016.56
5.4.100.0100.05716.45
5.4.90.0170.06016.48
5.4.80.0100.05016.29
5.4.70.0130.05016.46
5.4.60.0130.07016.52
5.4.50.0000.06316.37
5.4.40.0100.07016.41
5.4.30.0200.04316.46
5.4.20.0100.06316.27
5.4.10.0170.05016.35
5.4.00.0100.04715.84
5.3.290.0040.04112.80
5.3.280.0030.05314.75
5.3.270.0070.05314.68
5.3.260.0100.05714.77
5.3.250.0030.05714.78
5.3.240.0170.04014.68
5.3.230.0070.05314.82
5.3.220.0130.05014.65
5.3.210.0070.05314.55
5.3.200.0070.05014.54
5.3.190.0070.05314.65
5.3.180.0100.05014.55
5.3.170.0100.06014.46
5.3.160.0170.04714.61
5.3.150.0070.07314.39
5.3.140.0130.06314.54
5.3.130.0100.05314.55
5.3.120.0130.04714.56
5.3.110.0130.05714.53
5.3.100.0230.04014.12
5.3.90.0100.04314.09
5.3.80.0100.04314.20
5.3.70.0100.04714.18
5.3.60.0100.04714.07
5.3.50.0130.04014.02
5.3.40.0030.05714.04
5.3.30.0230.03013.81
5.3.20.0030.05013.66
5.3.10.0070.04713.63
5.3.00.0070.05013.72
5.2.170.0000.04310.97
5.2.160.0000.05311.05
5.2.150.0130.03311.13
5.2.140.0070.04011.21
5.2.130.0100.04711.32
5.2.120.0130.04711.20
5.2.110.0030.04011.18
5.2.100.0030.04311.26
5.2.90.0000.04311.17
5.2.80.0000.05011.16
5.2.70.0100.03711.25
5.2.60.0100.03711.27
5.2.50.0100.03710.85
5.2.40.0070.04310.97
5.2.30.0000.04311.05
5.2.20.0070.03710.96
5.2.10.0030.04010.83
5.2.00.0100.03310.72
5.1.60.0100.0279.99
5.1.50.0100.03010.24
5.1.40.0100.0279.94
5.1.30.0000.04010.16
5.1.20.0030.03710.42
5.1.10.0100.02710.16
5.1.00.0030.04310.26
5.0.50.0070.0278.78
5.0.40.0000.0478.50
5.0.30.0030.0538.19
5.0.20.0070.0238.28
5.0.10.0070.0238.00
5.0.00.0100.0378.08
4.4.90.0000.0236.73
4.4.80.0000.0236.73
4.4.70.0000.0236.73
4.4.60.0070.0176.73
4.4.50.0070.0176.73
4.4.40.0000.0336.73
4.4.30.0070.0176.73
4.4.20.0070.0176.73
4.4.10.0000.0236.73
4.4.00.0000.0476.73
4.3.110.0100.0236.73
4.3.100.0030.0306.73
4.3.90.0030.0206.73
4.3.80.0030.0306.73
4.3.70.0030.0206.73
4.3.60.0000.0236.73
4.3.50.0030.0206.73
4.3.40.0030.0306.73
4.3.30.0000.0236.73
4.3.20.0070.0276.73
4.3.10.0030.0176.73
4.3.00.0200.0176.89

preferences:
48.95 ms | 401 KiB | 5 Q