3v4l.org

run code in 300+ PHP versions simultaneously
<?php $format = "j-M-y H:i:s"; $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.60.0160.00618.68
8.3.50.0140.00622.02
8.3.40.0140.00418.92
8.3.30.0070.00719.22
8.3.20.0040.00420.30
8.3.10.0030.00523.48
8.3.00.0070.00320.61
8.2.180.0090.00616.50
8.2.170.0170.00322.96
8.2.160.0070.00722.29
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0000.00817.50
8.2.110.0030.00622.29
8.2.100.0060.00618.03
8.2.90.0080.00017.94
8.2.80.0000.00817.97
8.2.70.0000.00817.72
8.2.60.0050.00318.05
8.2.50.0050.00318.07
8.2.40.0080.00318.37
8.2.30.0040.00418.11
8.2.20.0070.00017.77
8.2.10.0000.00819.59
8.2.00.0000.00817.93
8.1.280.0120.00325.92
8.1.270.0000.00823.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00022.59
8.1.230.0070.00420.95
8.1.220.0060.00317.88
8.1.210.0000.00818.88
8.1.200.0060.00317.48
8.1.190.0000.00717.63
8.1.180.0120.00018.10
8.1.170.0090.00018.52
8.1.160.0000.00822.06
8.1.150.0040.00418.86
8.1.140.0040.00417.65
8.1.130.0000.00717.95
8.1.120.0030.00317.64
8.1.110.0040.00417.52
8.1.100.0000.00717.64
8.1.90.0000.00717.52
8.1.80.0000.00717.53
8.1.70.0030.00517.66
8.1.60.0030.00517.58
8.1.50.0040.00417.70
8.1.40.0070.00017.53
8.1.30.0080.00017.73
8.1.20.0040.00417.76
8.1.10.0000.00717.77
8.1.00.0000.00717.71
8.0.300.0000.00820.03
8.0.290.0040.00417.00
8.0.280.0000.00718.55
8.0.270.0030.00317.30
8.0.260.0040.00416.95
8.0.250.0060.00017.14
8.0.240.0000.00717.11
8.0.230.0040.00317.08
8.0.220.0070.00017.07
8.0.210.0030.00317.10
8.0.200.0030.00317.22
8.0.190.0030.00517.25
8.0.180.0070.00017.16
8.0.170.0000.00817.14
8.0.160.0000.00717.14
8.0.150.0040.00417.11
8.0.140.0030.00317.11
8.0.130.0060.00013.48
8.0.120.0080.00017.09
8.0.110.0040.00417.08
8.0.100.0040.00417.09
8.0.90.0000.00716.94
8.0.80.0060.00917.05
8.0.70.0020.00517.02
8.0.60.0040.00417.13
8.0.50.0000.00716.95
8.0.30.0110.01117.33
8.0.20.0100.00917.46
8.0.10.0040.00416.98
8.0.00.0090.00916.94
7.4.330.0000.00515.14
7.4.320.0000.00816.56
7.4.300.0060.00016.70
7.4.290.0000.00716.64
7.4.280.0000.00816.63
7.4.270.0030.00316.51
7.4.260.0030.00316.63
7.4.250.0000.00716.52
7.4.240.0050.00216.57
7.4.230.0000.00716.75
7.4.220.0090.00916.57
7.4.210.0040.01116.59
7.4.200.0030.00316.82
7.4.190.0040.00416.68
7.4.160.0130.00316.57
7.4.150.0120.00917.40
7.4.140.0070.01217.86
7.4.130.0110.00816.67
7.4.120.0070.01016.72
7.4.110.0080.00816.56
7.4.100.0120.00616.57
7.4.90.0110.00616.92
7.4.80.0040.01516.55
7.4.70.0100.00716.85
7.4.60.0100.00616.56
7.4.50.0040.00416.61
7.4.40.0060.01022.77
7.4.30.0060.01416.66
7.4.00.0030.01315.23
7.3.330.0030.00313.30
7.3.320.0060.00013.09
7.3.310.0040.00416.34
7.3.300.0040.00416.43
7.3.290.0040.01116.43
7.3.280.0030.01316.47
7.3.270.0120.00417.40
7.3.260.0120.01216.67
7.3.250.0120.00416.54
7.3.240.0070.01016.52
7.3.230.0060.00916.60
7.3.210.0090.00916.62
7.3.200.0000.02119.39
7.3.190.0070.01116.70
7.3.180.0030.01316.66
7.3.170.0100.01016.41
7.3.160.0120.01016.73
7.3.120.0070.01014.93
7.2.330.0080.00816.58
7.2.320.0060.01116.58
7.2.310.0030.01416.69
7.2.300.0030.01716.67
7.2.290.0100.00716.59
7.2.60.0000.00916.93
7.2.00.0030.01019.50
7.1.200.0060.00915.77
7.1.100.0000.01118.36
7.1.70.0000.00717.47
7.1.60.0140.01019.24
7.1.50.0230.01335.13
7.1.00.0100.06722.31
7.0.200.0100.00716.97
7.0.140.0030.04322.04
7.0.80.0070.03719.87
7.0.70.0000.04319.95
7.0.60.0070.06720.02
7.0.50.0100.03720.30
7.0.40.0070.03720.05
7.0.30.0070.03320.09
7.0.20.0000.04020.05
7.0.10.0030.03720.10
7.0.00.0030.03320.09
5.6.280.0000.07720.99
5.6.230.0000.03720.65
5.6.220.0130.05320.57
5.6.210.0030.08020.64
5.6.200.0030.04720.99
5.6.190.0100.04021.00
5.6.180.0100.04021.01
5.6.170.0030.04321.02
5.6.160.0000.03721.04
5.6.150.0000.04321.11
5.6.140.0100.05721.07
5.6.130.0130.06721.01
5.6.120.0030.07720.95
5.6.110.0170.03020.96
5.6.100.0070.07320.93
5.6.90.0100.05321.01
5.6.80.0030.04720.40
5.6.70.0070.07720.38
5.6.60.0100.06020.39
5.6.50.0100.07720.40
5.6.40.0100.05320.46
5.6.30.0070.05320.42
5.6.20.0100.06320.38
5.6.10.0000.08320.36
5.6.00.0170.06320.22
5.5.370.0030.06320.46
5.5.360.0000.05720.33
5.5.350.0070.04320.36
5.5.340.0030.05020.91
5.5.330.0070.03720.80
5.5.320.0070.04020.86
5.5.310.0030.03720.82
5.5.300.0000.04320.64
5.5.290.0070.04320.79
5.5.280.0000.09020.85
5.5.270.0070.05020.73
5.5.260.0030.04020.86
5.5.250.0070.04320.58
5.5.240.0100.06720.30
5.5.230.0070.07720.25
5.5.220.0130.07020.24
5.5.210.0100.07320.30
5.5.200.0000.07720.27
5.5.190.0100.07320.12
5.5.180.0030.06020.14
5.5.160.0100.06720.11
5.5.150.0070.03320.20
5.5.140.0230.05720.13
5.5.130.0130.06019.98
5.5.120.0000.05020.25
5.5.110.0100.05320.25
5.5.100.0030.06719.95
5.5.90.0100.07319.93
5.5.80.0030.04320.06
5.5.70.0130.07320.06
5.5.60.0000.05020.08
5.5.50.0030.06020.14
5.5.40.0030.04320.10
5.5.30.0030.08320.01
5.5.20.0030.04719.95
5.5.10.0170.05720.04
5.5.00.0070.07019.99
5.4.450.0000.04319.25
5.4.440.0070.05019.27
5.4.430.0130.06019.44
5.4.420.0100.06319.10
5.4.410.0070.07719.27
5.4.400.0070.05019.03
5.4.390.0100.07319.10
5.4.380.0070.04719.04
5.4.370.0100.06719.03
5.4.360.0070.07719.12
5.4.350.0100.07719.13
5.4.340.0000.04019.05
5.4.320.0030.06018.95
5.4.310.0100.05719.06
5.4.300.0030.03719.23
5.4.290.0030.07719.02
5.4.280.0030.05718.82
5.4.270.0070.04719.02
5.4.260.0030.04718.98
5.4.250.0030.04318.97
5.4.240.0130.04319.13
5.4.230.0130.07018.98
5.4.220.0070.07318.95
5.4.210.0030.03719.22
5.4.200.0030.04019.12
5.4.190.0070.07718.77
5.4.180.0070.07318.75
5.4.170.0130.06718.95
5.4.160.0000.04718.76
5.4.150.0100.04019.02
5.4.140.0030.04316.39
5.4.130.0030.05716.34
5.4.120.0030.04016.41
5.4.110.0000.08016.36
5.4.100.0030.05316.50
5.4.90.0070.06016.46
5.4.80.0070.03316.25
5.4.70.0100.06716.34
5.4.60.0100.04016.21
5.4.50.0100.04316.20
5.4.40.0030.07016.33
5.4.30.0000.08016.40
5.4.20.0030.03716.32
5.4.10.0100.05716.17
5.4.00.0070.05715.71
5.3.290.0030.06014.66
5.3.280.0230.03714.44
5.3.270.0100.06314.59
5.3.260.0030.04314.61
5.3.250.0100.03714.59
5.3.240.0130.03314.46
5.3.230.0100.07314.53
5.3.220.0070.03714.52
5.3.210.0030.06014.55
5.3.200.0070.03014.41
5.3.190.0000.07014.47
5.3.180.0030.07314.52
5.3.170.0070.07314.41
5.3.160.0000.03714.55
5.3.150.0100.05714.39
5.3.140.0100.05014.41
5.3.130.0100.05014.51
5.3.120.0070.06014.36
5.3.110.0030.03714.40
5.3.100.0130.07013.94
5.3.90.0030.07013.99
5.3.80.0030.07013.77
5.3.70.0070.07014.02
5.3.60.0100.06713.86
5.3.50.0070.04313.88
5.3.40.0030.04013.71
5.3.30.0100.07313.76
5.3.20.0070.07013.64
5.3.10.0030.07013.64
5.3.00.0000.05713.40
5.2.170.0000.03310.93
5.2.160.0030.05311.09
5.2.150.0130.03310.93
5.2.140.0030.05710.97
5.2.130.0030.05711.10
5.2.120.0030.04711.02
5.2.110.0030.02710.93
5.2.100.0030.03011.16
5.2.90.0000.03310.89
5.2.80.0030.06010.90
5.2.70.0000.05710.94
5.2.60.0100.05711.04
5.2.50.0000.06311.06
5.2.40.0000.03010.85
5.2.30.0030.05710.76
5.2.20.0100.04710.98
5.2.10.0030.06010.75
5.2.00.0130.05010.74
5.1.60.0030.05310.04
5.1.50.0000.0579.98
5.1.40.0030.0379.82
5.1.30.0070.04710.28
5.1.20.0070.02710.37
5.1.10.0000.06010.06
5.1.00.0100.04710.11
5.0.50.0030.0478.56
5.0.40.0030.0438.45
5.0.30.0070.0578.20
5.0.20.0000.0278.29
5.0.10.0000.0278.21
5.0.00.0030.0477.99
4.4.90.0070.0307.77
4.4.80.0000.0137.77
4.4.70.0000.0207.77
4.4.60.0070.0307.77
4.4.50.0070.0307.77
4.4.40.0000.0507.77
4.4.30.0000.0277.77
4.4.20.0000.0177.77
4.4.10.0000.0277.77
4.4.00.0100.0207.77
4.3.110.0070.0337.77
4.3.100.0000.0277.77
4.3.90.0030.0137.77
4.3.80.0000.0507.77
4.3.70.0000.0377.77
4.3.60.0030.0337.77
4.3.50.0070.0137.77
4.3.40.0030.0477.77
4.3.30.0030.0207.77
4.3.20.0000.0377.77
4.3.10.0000.0207.77
4.3.00.0070.0277.77

preferences:
44.09 ms | 401 KiB | 5 Q