3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_ALL, nl_NL); function my_strftime ($format, $timestamp) { $format = str_replace('%O', date('S', $timestamp), $format); return strftime($format, $timestamp); } echo my_strftime('%d%O -%m-%Y', time());

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)
7.3.10.0070.00716.67
7.3.00.0060.00316.89
7.2.130.0040.01216.99
7.2.120.0030.00916.92
7.2.110.0040.01116.89
7.2.100.0030.01016.95
7.2.90.0090.00616.71
7.2.80.0070.00717.21
7.2.70.0030.01017.22
7.2.60.0090.00117.00
7.2.50.0070.01016.98
7.2.40.0000.01417.10
7.2.30.0070.00416.82
7.2.20.0100.00616.74
7.2.10.0100.00616.73
7.2.00.0060.00518.22
7.1.250.0080.00615.40
7.1.200.0030.00715.79
7.1.100.0000.01018.27
7.1.70.0060.00617.41
7.1.60.0150.00819.30
7.1.50.0030.01616.77
7.1.00.0030.07722.31
7.0.200.0040.00417.05
7.0.140.0100.07022.21
7.0.120.0000.07022.17
7.0.100.0230.05319.87
7.0.90.0200.04320.01
7.0.80.0030.04319.89
7.0.70.0370.03319.91
7.0.60.0130.04019.88
7.0.50.0170.03720.29
7.0.40.0000.04320.18
7.0.30.0070.04020.04
7.0.20.0070.04020.09
7.0.10.0070.04320.09
7.0.00.0030.04320.07
5.6.250.0070.04720.80
5.6.240.0000.04720.59
5.6.230.0000.05020.56
5.6.220.0030.08320.57
5.6.210.0030.06020.73
5.6.200.0000.08021.11
5.6.190.0030.04021.04
5.6.180.0100.04021.08
5.6.170.0000.05021.04
5.6.160.0030.04021.13
5.6.150.0070.04021.07
5.6.140.0030.04021.07
5.6.130.0030.04320.96
5.6.120.0070.03321.01
5.6.110.0000.04721.04
5.6.100.0000.04021.10
5.6.90.0100.05320.94
5.6.80.0070.03320.46
5.6.70.0000.04020.49
5.6.60.0030.03320.43
5.6.50.0000.04320.49
5.6.40.0130.07720.41
5.6.30.0130.07320.44
5.6.20.0200.06320.37
5.6.10.0070.08320.40
5.6.00.0100.08020.44
5.5.380.0000.04720.57
5.5.370.0030.04320.44
5.5.360.0070.04020.44
5.5.350.0130.03320.40
5.5.340.0100.07020.87
5.5.330.0000.04020.88
5.5.320.0030.03720.91
5.5.310.0030.04020.84
5.5.300.0070.03720.79
5.5.290.0030.04020.83
5.5.280.0000.04020.76
5.5.270.0030.04020.86
5.5.260.0030.04320.91
5.5.250.0030.04020.73
5.5.240.0030.03320.19
5.5.230.0070.03720.29
5.5.220.0070.03720.10
5.5.210.0100.03320.23
5.5.200.0030.07720.23
5.5.190.0130.08020.07
5.5.180.0100.07720.27
5.5.160.0070.07720.26
5.5.150.0030.07720.14
5.5.140.0100.04020.08
5.5.130.0100.07020.17
5.5.120.0070.04720.21
5.5.110.0130.05720.22
5.5.100.0100.07720.10
5.5.90.0130.04720.16
5.5.80.0100.08020.06
5.5.70.0100.07020.03
5.5.60.0030.05020.14
5.5.50.0070.05320.05
5.5.40.0130.06720.08
5.5.30.0070.08720.03
5.5.20.0100.07720.07
5.5.10.0100.07720.06
5.5.00.0070.04020.03
5.4.450.0070.05319.42
5.4.440.0030.04319.20
5.4.430.0070.03719.50
5.4.420.0000.04319.19
5.4.410.0070.03319.44
5.4.400.0100.06319.05
5.4.390.0030.04019.04
5.4.380.0030.03719.04
5.4.370.0000.03719.21
5.4.360.0030.07019.04
5.4.350.0030.08019.14
5.4.340.0070.06319.13
5.4.320.0170.03719.03
5.4.310.0170.06018.82
5.4.300.0030.08019.07
5.4.290.0100.05019.10
5.4.280.0170.04719.04
5.4.270.0000.05018.90
5.4.260.0100.04019.25
5.4.250.0170.06718.84
5.4.240.0130.07319.08
5.4.230.0170.07019.18
5.4.220.0100.06719.20
5.4.210.0030.06019.05
5.4.200.0100.06318.94
5.4.190.0100.07719.12
5.4.180.0100.06019.13
5.4.170.0000.05319.04
5.4.160.0030.05319.02
5.4.150.0070.04319.01
5.4.140.0070.03316.50
5.4.130.0030.06316.43
5.4.120.0130.02716.25
5.4.110.0070.06716.50
5.4.100.0000.04016.39
5.4.90.0100.03716.39
5.4.80.0100.05016.48
5.4.70.0100.06316.39
5.4.60.0070.07716.39
5.4.50.0070.04016.43
5.4.40.0030.05016.46
5.4.30.0030.03716.51
5.4.20.0030.07016.39
5.4.10.0170.06716.30
5.4.00.0130.06315.87
5.3.290.0030.04714.65
5.3.280.0170.06314.57
5.3.270.0030.08014.57
5.3.260.0070.07014.70
5.3.250.0030.06014.67
5.3.240.0000.08314.75
5.3.230.0030.05314.52
5.3.220.0100.07714.54
5.3.210.0130.07014.54
5.3.200.0070.04014.69
5.3.190.0030.04014.55
5.3.180.0000.04314.51
5.3.170.0100.04714.67
5.3.160.0030.04014.52
5.3.150.0070.07314.64
5.3.140.0100.07314.54
5.3.130.0100.07714.57
5.3.120.0030.07014.47
5.3.110.0030.04714.52
5.3.100.0070.08314.10
5.3.90.0200.03714.08
5.3.80.0100.07313.95
5.3.70.0130.07013.99
5.3.60.0130.06313.96
5.3.50.0170.07314.00
5.3.40.0170.06013.93
5.3.30.0170.06313.97
5.3.20.0100.03013.84
5.3.10.0070.06313.55
5.3.00.0030.04313.57
5.2.170.0130.05311.18
5.2.160.0000.04011.25
5.2.150.0000.05011.20
5.2.140.0000.04311.23
5.2.130.0030.03711.15
5.2.120.0130.04311.07
5.2.110.0030.06311.17
5.2.100.0100.05011.15
5.2.90.0130.02011.19
5.2.80.0070.06011.04
5.2.70.0070.04310.95
5.2.60.0070.04311.07
5.2.50.0030.06310.88
5.2.40.0100.05010.95
5.2.30.0130.05311.07
5.2.20.0130.05011.08
5.2.10.0100.06010.79
5.2.00.0100.02710.74
5.1.60.0070.04710.08
5.1.50.0030.05310.06
5.1.40.0000.05710.01
5.1.30.0030.06010.20
5.1.20.0000.04310.38
5.1.10.0070.04710.15
5.1.00.0030.04010.05
5.0.50.0030.0478.66
5.0.40.0030.0478.48
5.0.30.0100.0608.29
5.0.20.0030.0438.32
5.0.10.0100.0378.25
5.0.00.0070.0608.15
4.4.90.0030.0277.37
4.4.80.0030.0377.37
4.4.70.0000.0407.37
4.4.60.0030.0337.37
4.4.50.0030.0177.37
4.4.40.0030.0537.37
4.4.30.0030.0377.37
4.4.20.0100.0307.37
4.4.10.0030.0377.37
4.4.00.0000.0577.37
4.3.110.0030.0337.37
4.3.100.0070.0307.37
4.3.90.0030.0337.37
4.3.80.0070.0407.37
4.3.70.0000.0177.37
4.3.60.0070.0307.37
4.3.50.0070.0277.37
4.3.40.0070.0437.37
4.3.30.0030.0377.37
4.3.20.0030.0377.37
4.3.10.0030.0307.37
4.3.00.0000.0377.37

preferences:
25.9 ms | 401 KiB | 5 Q