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', 'd/m/Y', '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.0070.01318.55
8.3.50.0070.01121.15
8.3.40.0070.00718.93
8.3.30.0070.00719.04
8.3.20.0070.00020.30
8.3.10.0040.00422.13
8.3.00.0040.00422.46
8.2.180.0110.00416.88
8.2.170.0030.01022.96
8.2.160.0110.00420.39
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0070.00726.16
8.2.120.0030.00519.89
8.2.110.0080.00020.25
8.2.100.0100.00319.15
8.2.90.0040.00419.26
8.2.80.0060.00319.39
8.2.70.0040.00417.88
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0040.00418.03
8.2.30.0040.00418.06
8.2.20.0050.00317.96
8.2.10.0050.00317.82
8.2.00.0050.00317.94
8.1.280.0090.00625.92
8.1.270.0000.00920.52
8.1.260.0050.00226.35
8.1.250.0030.00728.09
8.1.240.0000.00923.92
8.1.230.0000.01219.01
8.1.220.0000.00817.77
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0000.00817.55
8.1.180.0040.00418.88
8.1.170.0090.00018.59
8.1.160.0000.00922.07
8.1.150.0040.00418.72
8.1.140.0040.00417.51
8.1.130.0000.00717.93
8.1.120.0070.00017.50
8.1.110.0050.00517.64
8.1.100.0000.00817.62
8.1.90.0000.00817.62
8.1.80.0040.00417.65
8.1.70.0040.00417.57
8.1.60.0030.00617.68
8.1.50.0080.00017.66
8.1.40.0040.00417.50
8.1.30.0000.00817.73
8.1.20.0000.00817.75
8.1.10.0000.00717.67
8.1.00.0000.00717.65
8.0.300.0070.00018.77
8.0.290.0040.00417.16
8.0.280.0000.00718.41
8.0.270.0040.00417.34
8.0.260.0000.00718.83
8.0.250.0030.00317.18
8.0.240.0080.00017.23
8.0.230.0030.00517.22
8.0.220.0040.00417.05
8.0.210.0070.00017.21
8.0.200.0030.00317.27
8.0.190.0000.00717.27
8.0.180.0000.00717.02
8.0.170.0040.00417.16
8.0.160.0050.00317.04
8.0.150.0040.00417.12
8.0.140.0040.00417.11
8.0.130.0060.00013.54
8.0.120.0000.00817.11
8.0.110.0040.00417.22
8.0.100.0000.00717.23
8.0.90.0000.00717.00
8.0.80.0090.01517.12
8.0.70.0040.00417.04
8.0.60.0050.00217.08
8.0.50.0050.00317.08
8.0.30.0120.00617.24
8.0.20.0100.01017.40
8.0.10.0030.00517.24
8.0.00.0120.00616.67
7.4.330.0060.00015.00
7.4.320.0040.00416.57
7.4.300.0000.00716.71
7.4.290.0030.00316.62
7.4.280.0050.00316.63
7.4.270.0040.00416.58
7.4.260.0000.00716.72
7.4.250.0040.00416.57
7.4.240.0000.00716.63
7.4.230.0070.00016.59
7.4.220.0030.01416.62
7.4.210.0080.00816.72
7.4.200.0030.00316.80
7.4.190.0050.00216.83
7.4.160.0110.00416.42
7.4.150.0130.00817.40
7.4.140.0100.00817.86
7.4.130.0080.00816.52
7.4.120.0080.01016.64
7.4.110.0100.01016.69
7.4.100.0100.00716.78
7.4.90.0030.01516.45
7.4.80.0120.00619.39
7.4.70.0130.00316.62
7.4.60.0290.02116.73
7.4.50.0000.00616.56
7.4.40.0030.01022.77
7.4.30.0150.00516.82
7.4.00.0030.01215.14
7.3.330.0020.00213.36
7.3.320.0000.00513.44
7.3.310.0050.00316.38
7.3.300.0030.00316.54
7.3.290.0090.00616.50
7.3.280.0100.00716.49
7.3.270.0070.01817.40
7.3.260.0110.00716.50
7.3.250.0140.00616.56
7.3.240.0100.01016.57
7.3.230.0120.00616.50
7.3.210.0130.00316.62
7.3.200.0080.00819.39
7.3.190.0160.00616.63
7.3.180.0040.01816.48
7.3.170.0110.00516.60
7.3.160.0060.00916.63
7.3.120.0060.01214.67
7.3.110.0110.00315.03
7.3.100.0040.00714.75
7.3.90.0150.00014.89
7.3.80.0040.00714.93
7.3.70.0040.01214.84
7.3.60.0090.00314.82
7.3.50.0120.00014.82
7.3.40.0060.00814.77
7.3.30.0120.00414.72
7.3.20.0030.00616.64
7.3.10.0040.01216.58
7.3.00.0030.01016.55
7.2.330.0090.00816.95
7.2.320.0080.01116.89
7.2.310.0140.00316.54
7.2.300.0120.00616.93
7.2.290.0090.00916.63
7.2.240.0030.01114.86
7.2.230.0110.00015.32
7.2.220.0060.01215.14
7.2.210.0030.01415.38
7.2.200.0030.01215.18
7.2.190.0100.00615.19
7.2.180.0070.01015.03
7.2.170.0060.00615.11
7.2.160.0070.01115.01
7.2.150.0030.01316.80
7.2.140.0100.00716.64
7.2.130.0100.01017.03
7.2.120.0030.01316.79
7.2.110.0000.01616.86
7.2.100.0060.00616.84
7.2.90.0030.01517.02
7.2.80.0100.00617.02
7.2.70.0090.00616.93
7.2.60.0060.00916.85
7.2.50.0110.00716.86
7.2.40.0110.00616.71
7.2.30.0000.01517.08
7.2.20.0120.00816.98
7.2.10.0070.00416.71
7.2.00.0040.01216.90
7.1.330.0100.00715.81
7.1.320.0040.01215.64
7.1.310.0000.01116.05
7.1.300.0060.00915.62
7.1.290.0100.00315.64
7.1.280.0030.01015.64
7.1.270.0090.00915.70
7.1.260.0000.01515.84
7.1.250.0140.00315.66
7.1.100.0000.01118.29
7.1.70.0000.01417.01
7.1.60.0000.01317.32
7.1.50.0030.00817.06
7.1.00.0030.07722.27
7.0.200.0040.01116.98
7.0.140.0070.07021.95
7.0.60.0070.06319.91
7.0.50.0100.08017.89
7.0.40.0130.08320.14
7.0.30.0330.07020.11
7.0.20.0300.06020.10
7.0.10.0270.08320.10
7.0.00.0130.03720.23
5.6.280.0100.07021.13
5.6.210.0130.07320.56
5.6.200.0070.03718.16
5.6.190.0170.08020.41
5.6.180.3800.04020.50
5.6.170.0430.07320.55
5.6.160.0000.06320.50
5.6.150.0130.05018.34
5.6.140.0030.04018.15
5.6.130.0070.08018.21
5.6.120.0100.08021.00
5.6.110.0030.04021.12
5.6.100.0130.07721.12
5.6.90.0100.04320.98
5.6.80.0030.03720.36
5.5.350.0200.07720.42
5.5.340.0000.08718.09
5.5.330.0030.04320.27
5.5.320.0170.07720.33
5.5.310.0230.06320.36
5.5.300.0070.06318.08
5.5.290.0000.08017.97
5.5.280.0070.04020.77
5.5.270.0030.06020.87
5.5.260.0170.07720.79
5.5.250.0070.08020.50
5.5.240.0070.04020.16
5.4.450.0970.06319.59
5.4.440.0830.06019.39
5.4.430.0870.06319.44
5.4.420.0930.06019.33
5.4.410.0870.05019.25
5.4.400.0400.05718.51
5.4.390.0370.05718.48
5.4.380.0200.05318.70
5.4.370.0100.05318.63
5.4.360.0130.05318.50
5.4.350.0080.04912.02
5.4.340.0100.06012.02
5.4.320.0060.03912.50
5.4.310.0070.04512.50
5.4.300.0050.04412.51
5.4.290.0060.04312.50
5.4.280.0050.04512.40
5.4.270.0060.03512.40
5.4.260.0080.03812.40
5.4.250.0070.05318.78
5.4.240.0100.05018.80
5.4.230.0070.05019.05
5.4.220.0070.05018.88
5.4.210.0130.04718.79
5.4.200.0130.04318.93
5.4.190.0130.04318.91
5.4.180.0200.06018.76
5.4.170.0100.04718.95
5.4.160.0100.05018.89
5.4.150.0030.06718.78
5.4.140.0170.04016.41
5.4.130.0030.05316.52
5.4.120.0070.06716.32
5.4.110.0100.06016.33
5.4.100.0070.06716.41
5.4.90.0070.06016.63
5.4.80.0100.04316.29
5.4.70.0030.05016.31
5.4.60.0070.06016.42
5.4.50.0030.05016.44
5.4.40.0030.05016.50
5.4.30.0100.04716.46
5.4.20.0030.05716.46
5.4.10.0100.05016.53
5.4.00.0130.04015.82
5.3.290.0030.04312.80
5.3.280.0130.04314.68
5.3.270.0100.04714.59
5.3.260.0070.06714.69
5.3.250.0030.06714.73
5.3.240.0100.04314.69
5.3.230.0030.05314.81
5.3.220.0070.05014.48
5.3.210.0100.05714.70
5.3.200.0100.04714.64
5.3.190.0100.05014.41
5.3.180.0130.05314.39
5.3.170.0000.05714.46
5.3.160.0000.07314.47
5.3.150.0100.04714.55
5.3.140.0030.08014.46
5.3.130.0030.05314.63
5.3.120.0170.04314.53
5.3.110.0030.05314.64
5.3.100.0070.05714.23
5.3.90.0130.04314.00
5.3.80.0070.05713.85
5.3.70.0100.04314.20
5.3.60.0070.04713.91
5.3.50.0100.04314.03
5.3.40.0070.04714.11
5.3.30.0100.06714.13
5.3.20.0070.04713.52
5.3.10.0000.05013.48
5.3.00.0030.05013.61
5.2.170.0000.05311.22
5.2.160.0030.04011.23
5.2.150.0000.04711.23
5.2.140.0100.03711.04
5.2.130.0000.04311.19
5.2.120.0070.04011.19
5.2.110.0000.04311.32
5.2.100.0000.04311.18
5.2.90.0030.04311.17
5.2.80.0030.04011.06
5.2.70.0000.04311.16
5.2.60.0000.04311.14
5.2.50.0070.04010.86
5.2.40.0000.04311.11
5.2.30.0030.04011.05
5.2.20.0030.03711.11
5.2.10.0030.04010.93
5.2.00.0070.03710.88
5.1.60.0100.02710.06
5.1.50.0030.03710.00
5.1.40.0030.03310.01
5.1.30.0030.05010.39
5.1.20.0030.05010.27
5.1.10.0030.03310.04
5.1.00.0070.04710.02
5.0.50.0030.0338.64
5.0.40.0000.0278.46
5.0.30.0000.0438.29
5.0.20.0000.0278.20
5.0.10.0070.0208.14
5.0.00.0000.0438.23
4.4.90.0030.0206.69
4.4.80.0030.0176.69
4.4.70.0030.0206.69
4.4.60.0000.0206.69
4.4.50.0000.0236.69
4.4.40.0000.0336.69
4.4.30.0000.0236.69
4.4.20.0100.0176.69
4.4.10.0000.0276.69
4.4.00.0000.0336.69
4.3.110.0100.0136.69
4.3.100.0030.0276.69
4.3.90.0000.0206.69
4.3.80.0030.0306.69
4.3.70.0000.0206.69
4.3.60.0030.0236.69
4.3.50.0000.0236.69
4.3.40.0030.0306.69
4.3.30.0030.0206.69
4.3.20.0000.0236.69
4.3.10.0030.0206.69
4.3.00.0200.0207.11

preferences:
51.4 ms | 401 KiB | 5 Q