3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f4_raw = "Wed Jan 14 00:09:09 BDT 2009"; $f4_formatted = date($format, strtotime($f4_raw)); echo "Format 4: $f4_formatted"; //$date = DateTime::createFromFormat('i/M/Y', 'Tue/Feb/2013'); //import with the specified format... //echo $date->format('Y-m-d');

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.40.0040.01118.77
8.3.30.0090.00618.91
8.3.20.0080.00019.08
8.3.10.0040.00420.78
8.3.00.0000.00823.70
8.2.170.0070.00722.96
8.2.160.0100.00720.56
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0060.00319.38
8.2.110.0100.01020.39
8.2.100.0040.00817.92
8.2.90.0050.00319.36
8.2.80.0030.00618.00
8.2.70.0000.00918.00
8.2.60.0060.00318.18
8.2.50.0040.00418.16
8.2.40.0050.00518.41
8.2.30.0100.00018.19
8.2.20.0000.00717.84
8.2.10.0040.00417.99
8.2.00.0040.00418.04
8.1.270.0070.00023.99
8.1.260.0030.01026.35
8.1.250.0080.00028.09
8.1.240.0000.00922.30
8.1.230.0090.00317.58
8.1.220.0000.00717.88
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0000.00817.51
8.1.180.0040.00418.10
8.1.170.0000.00918.91
8.1.160.0000.00718.96
8.1.150.0050.00318.86
8.1.140.0040.00417.64
8.1.130.0040.00417.82
8.1.120.0040.00417.62
8.1.110.0040.00417.61
8.1.100.0000.00717.52
8.1.90.0040.00417.61
8.1.80.0040.00417.63
8.1.70.0000.00717.56
8.1.60.0050.00317.74
8.1.50.0040.00417.51
8.1.40.0040.00417.54
8.1.30.0060.00317.76
8.1.20.0030.00617.78
8.1.10.0030.00517.73
8.1.00.0030.00517.68
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0000.00718.53
8.0.270.0050.00317.44
8.0.260.0030.00617.20
8.0.250.0030.00617.32
8.0.240.0030.00517.25
8.0.230.0030.00317.25
8.0.220.0030.00317.08
8.0.210.0040.00417.18
8.0.200.0030.00317.17
8.0.190.0000.00717.20
8.0.180.0030.00517.25
8.0.170.0070.00017.26
8.0.160.0060.00317.20
8.0.150.0000.00717.11
8.0.140.0000.00717.09
8.0.130.0000.00513.65
8.0.120.0050.00317.05
8.0.110.0000.00717.03
8.0.100.0060.00317.09
8.0.90.0040.00317.18
8.0.80.0060.01217.26
8.0.70.0080.00017.11
8.0.60.0040.00417.14
8.0.50.0000.00717.09
8.0.30.0160.01017.19
8.0.20.0110.01117.46
8.0.10.0000.00717.16
8.0.00.0150.01817.01
7.4.330.0050.00014.93
7.4.320.0060.00316.70
7.4.300.0000.00616.59
7.4.290.0070.00016.73
7.4.280.0000.00716.68
7.4.270.0000.00716.65
7.4.260.0000.00513.29
7.4.250.0000.00816.68
7.4.240.0030.00316.71
7.4.230.0000.00816.66
7.4.220.0140.00316.82
7.4.210.0080.01116.70
7.4.200.0000.00716.75
7.4.190.0030.00316.59
7.4.160.0160.00316.63
7.4.150.0100.00717.40
7.4.140.0080.01117.86
7.4.130.0100.00916.81
7.4.120.0140.00316.60
7.4.110.0100.01416.77
7.4.100.0060.01116.79
7.4.90.0060.01316.68
7.4.80.0070.01019.04
7.4.70.0060.01416.80
7.4.60.0070.01016.76
7.4.50.0090.00016.73
7.4.40.0060.00622.27
7.4.30.0090.00916.91
7.4.00.0080.00915.34
7.3.330.0050.00013.28
7.3.320.0000.00713.29
7.3.310.0000.00616.45
7.3.300.0030.00316.46
7.3.290.0040.01016.49
7.3.280.0070.01216.45
7.3.270.0100.00717.40
7.3.260.0070.01318.24
7.3.250.0160.00316.65
7.3.240.0110.00716.57
7.3.230.0080.00916.90
7.3.210.0070.01016.63
7.3.200.0150.00319.39
7.3.190.0100.01016.64
7.3.180.0070.01016.73
7.3.170.0100.00716.70
7.3.160.0030.01316.52
7.3.120.0070.01014.77
7.3.110.0070.01314.87
7.3.100.0030.01214.91
7.3.90.0080.00314.91
7.3.80.0030.01015.12
7.3.70.0000.01514.92
7.3.60.0000.01115.01
7.3.50.0080.00414.89
7.3.40.0100.00615.01
7.3.30.0070.00414.82
7.3.20.0080.00516.45
7.3.10.0070.00716.95
7.3.00.0030.00716.84
7.2.330.0100.01016.72
7.2.320.0100.00616.66
7.2.310.0030.01416.72
7.2.300.0090.01316.60
7.2.290.0130.00616.92
7.2.250.0080.00615.07
7.2.240.0080.01215.15
7.2.230.0060.00915.07
7.2.220.0030.00715.23
7.2.210.0040.00715.08
7.2.200.0030.01315.25
7.2.190.0030.01014.82
7.2.180.0110.00415.27
7.2.170.0060.00914.80
7.2.00.0030.01219.14
7.1.330.0110.00416.09
7.1.320.0040.00716.05
7.1.310.0060.00616.03
7.1.300.0060.00615.96
7.1.290.0040.01115.65
7.1.280.0090.00315.78
7.1.270.0070.00715.58
7.1.260.0030.01015.69
7.1.100.0030.00918.00
7.1.70.0040.00417.33
7.1.60.0110.01119.40
7.1.50.0140.00717.21
7.1.00.0030.03322.57
7.0.200.0030.00617.02
7.0.140.0130.06322.21
7.0.90.0070.07721.70
7.0.80.0000.08321.66
7.0.70.0070.08321.68
7.0.60.0000.07021.87
7.0.50.0030.08722.14
7.0.40.0000.04720.09
7.0.30.0070.07720.05
7.0.20.0030.07320.18
7.0.10.0030.08020.07
7.0.00.0100.06720.09
5.6.280.0100.06721.06
5.6.240.0070.08020.68
5.6.230.0000.07320.67
5.6.220.0030.04020.55
5.6.210.0070.07020.56
5.6.200.0100.07721.17
5.6.190.0070.08021.09
5.6.180.0000.04321.05
5.6.170.0070.08021.13
5.6.160.0030.08320.93
5.6.150.0030.05021.10
5.6.140.0030.08321.01
5.6.130.0030.06020.98
5.6.120.0100.07321.04
5.6.110.0070.09021.13
5.6.100.0030.08021.02
5.6.90.0030.08721.10
5.6.80.0070.04020.42
5.6.70.0000.08320.37
5.6.60.0030.07020.31
5.6.50.0030.07720.45
5.6.40.0070.08020.41
5.6.30.0070.07720.45
5.6.20.0030.04320.43
5.6.10.0000.04320.38
5.6.00.0000.07320.29
5.5.380.0070.07720.34
5.5.370.0000.06020.43
5.5.360.0130.07020.38
5.5.350.0100.07720.33
5.5.340.0000.06320.90
5.5.330.0030.08020.77
5.5.320.0000.08320.78
5.5.310.0000.05020.63
5.5.300.0070.07020.88
5.5.290.0130.06720.63
5.5.280.0070.08320.89
5.5.270.0030.05720.79
5.5.260.0000.08720.81
5.5.250.0030.08020.55
5.5.240.0100.03320.15
5.5.230.0030.04320.00
5.5.220.0000.04020.07
5.5.210.0030.07720.26
5.5.200.0070.07020.14
5.5.190.0000.08720.21
5.5.180.0130.07020.07
5.5.160.0030.07320.21
5.5.150.0070.06320.21
5.5.140.0030.07020.22
5.5.130.0130.06020.10
5.5.120.0100.07020.17
5.5.110.0030.06320.22
5.5.100.0070.07320.12
5.5.90.0070.07720.10
5.5.80.0070.07320.05
5.5.70.0100.05020.02
5.5.60.0070.07320.04
5.5.50.0100.06720.09
5.5.40.0000.06020.07
5.5.30.0030.07020.01
5.5.20.0000.05719.92
5.5.10.0000.08020.02
5.5.00.0030.08020.11
5.4.450.0030.07019.37
5.4.440.0030.06319.11
5.4.430.0070.07719.30
5.4.420.0030.05719.13
5.4.410.0030.05019.27
5.4.400.0070.07019.04
5.4.390.0070.06719.12
5.4.380.0000.07319.05
5.4.370.0000.08019.23
5.4.360.0030.08019.03
5.4.350.0070.08018.78
5.4.340.0030.07319.14
5.4.320.0070.07319.02
5.4.310.0030.08019.12
5.4.300.0030.04719.07
5.4.290.0100.07019.07
5.4.280.0000.07719.14
5.4.270.0030.05719.02
5.4.260.0070.06319.09
5.4.250.0030.07719.02
5.4.240.0000.05318.77
5.4.230.0000.07719.24
5.4.220.0070.07318.95
5.4.210.0070.06018.83
5.4.200.0000.07318.80
5.4.190.0100.04718.93
5.4.180.0030.07318.77
5.4.170.0100.04718.95
5.4.160.0000.06719.11
5.4.150.0030.07719.01
5.4.140.0070.07716.12
5.4.130.0070.07016.41
5.4.120.0030.07016.40
5.4.110.0000.07016.46
5.4.100.0030.07016.36
5.4.90.0030.07716.27
5.4.80.0030.06316.30
5.4.70.0000.03716.34
5.4.60.0030.07016.20
5.4.50.0000.06016.37
5.4.40.0030.07716.28
5.4.30.0070.06316.30
5.4.20.0000.08016.19
5.4.10.0070.06016.29
5.4.00.0030.07715.71
5.3.290.0030.07714.64
5.3.280.0030.04714.57
5.3.270.0070.07314.56
5.3.260.0030.06014.58
5.3.250.0030.06714.56
5.3.240.0030.07714.55
5.3.230.0030.06714.43
5.3.220.0030.05714.52
5.3.210.0030.05014.38
5.3.200.0030.05314.38
5.3.190.0070.07014.55
5.3.180.0130.03714.53
5.3.170.0030.04714.47
5.3.160.0000.04314.55
5.3.150.0030.08014.41
5.3.140.0030.04314.48
5.3.130.0170.03014.54
5.3.120.0070.04014.53
5.3.110.0130.03714.55
5.3.100.0030.07314.01
5.3.90.0070.05313.84
5.3.80.0000.05713.97
5.3.70.0070.06713.98
5.3.60.0030.04013.98
5.3.50.0000.04313.88
5.3.40.0130.06713.90
5.3.30.0030.05713.86
5.3.20.0070.07013.45
5.3.10.0000.07313.51
5.3.00.0170.06313.59
5.2.170.0030.02311.13
5.2.160.0000.06310.93
5.2.150.0000.06710.96
5.2.140.0030.05310.98
5.2.130.0100.05010.95
5.2.120.0070.05711.12
5.2.110.0070.05311.06
5.2.100.0070.05311.12
5.2.90.0030.05311.15
5.2.80.0030.06010.97
5.2.70.0100.05710.91
5.2.60.0100.05711.09
5.2.50.0030.04710.88
5.2.40.0030.05311.03
5.2.30.0030.04011.02
5.2.20.0000.04010.75
5.2.10.0000.05710.90
5.2.00.0070.04710.66
5.1.60.0000.05310.02
5.1.50.0100.04310.00
5.1.40.0100.03710.00
5.1.30.0000.05310.38
5.1.20.0030.05310.35
5.1.10.0100.05010.07
5.1.00.0100.03310.09
5.0.50.0000.0278.86
5.0.40.0000.0208.86
5.0.30.0030.0538.86
5.0.20.0000.0438.86
5.0.10.0030.0278.86
5.0.00.0100.0438.86
4.4.90.0000.0338.86
4.4.80.0000.0338.86
4.4.70.0000.0408.86
4.4.60.0030.0338.86
4.4.50.0000.0378.86
4.4.40.0000.0578.86
4.4.30.0000.0278.86
4.4.20.0030.0278.86
4.4.10.0030.0138.86
4.4.00.0030.0278.86
4.3.110.0030.0338.86
4.3.100.0000.0378.86
4.3.90.0000.0278.86
4.3.80.0030.0538.86
4.3.70.0000.0338.86
4.3.60.0000.0308.86
4.3.50.0030.0338.86
4.3.40.0000.0478.86
4.3.30.0000.0308.86
4.3.20.0030.0378.86
4.3.10.0030.0338.86
4.3.00.0000.0378.86

preferences:
42.98 ms | 400 KiB | 5 Q