3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(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.120.0160.00014.60
7.3.110.0070.01314.82
7.3.100.0060.00915.07
7.3.90.0090.00615.03
7.3.80.0030.00614.80
7.3.70.0100.00314.72
7.3.60.0040.01214.89
7.3.50.0030.00915.02
7.3.40.0120.00614.64
7.3.30.0060.00315.01
7.3.20.0070.00716.89
7.3.10.0070.00416.66
7.3.00.0090.00916.78
7.2.240.0070.00715.25
7.2.230.0000.01514.96
7.2.220.0130.00615.47
7.2.210.0130.00615.07
7.2.200.0030.00715.08
7.2.190.0080.00814.80
7.2.180.0000.01015.24
7.2.170.0030.01215.20
7.2.160.0000.00815.14
7.2.150.0100.00316.79
7.2.140.0110.00016.95
7.2.130.0070.01017.17
7.2.120.0070.01017.03
7.2.110.0080.00817.06
7.2.100.0000.01016.56
7.2.90.0070.00717.07
7.2.80.0080.00817.13
7.2.70.0110.00317.16
7.2.60.0060.00916.89
7.2.50.0060.00616.91
7.2.40.0030.00917.06
7.2.30.0070.01017.15
7.2.20.0070.01017.11
7.2.10.0060.00916.69
7.2.00.0050.00718.30
7.1.330.0030.01415.93
7.1.320.0060.01015.79
7.1.310.0030.01215.98
7.1.300.0070.01115.94
7.1.290.0150.00015.75
7.1.280.0060.01215.75
7.1.270.0030.00915.88
7.1.260.0060.00616.03
7.1.250.0030.01415.59
7.1.200.0180.00015.71
7.1.100.0000.01118.41
7.1.70.0030.00317.33
7.1.60.0100.01019.29
7.1.50.0140.01017.11
7.1.00.0130.06722.44
7.0.200.0060.00616.98
7.0.140.0000.07722.18
7.0.80.0630.07319.86
7.0.70.0570.07319.91
7.0.60.0400.08719.88
7.0.50.0600.07720.20
7.0.40.0100.08020.11
7.0.30.0070.08019.94
7.0.20.0100.08319.95
7.0.10.0130.06720.16
7.0.00.0130.08019.95
5.6.280.0000.07320.91
5.6.230.0070.08320.61
5.6.220.0070.08320.62
5.6.210.0100.08020.55
5.6.200.0070.07021.17
5.6.190.0100.05321.05
5.6.180.0070.08021.03
5.6.170.0100.08321.04
5.6.160.0170.07721.03
5.6.150.0200.06721.08
5.6.140.0070.05721.04
5.6.130.0100.08321.11
5.6.120.0130.07321.04
5.6.110.0100.07721.10
5.6.100.0100.05321.12
5.6.90.0070.07321.00
5.6.80.0030.08020.43
5.6.70.0100.05320.52
5.6.60.0200.04720.41
5.6.50.0070.05720.56
5.6.40.0100.04320.46
5.6.30.0070.07720.39
5.6.20.0070.08020.42
5.6.10.0130.07320.47
5.6.00.0070.07320.30
5.5.370.0100.07020.35
5.5.360.0100.05020.36
5.5.350.0130.07720.39
5.5.340.0100.07020.73
5.5.330.0170.07320.64
5.5.320.0170.07320.89
5.5.310.0070.07720.64
5.5.300.0100.05720.64
5.5.290.0000.08720.80
5.5.280.0070.09020.88
5.5.270.0130.08320.91
5.5.260.0100.08320.73
5.5.250.0100.07720.61
5.5.240.0200.07020.29
5.5.230.0170.05020.23
5.5.220.0030.06320.26
5.5.210.0070.07320.14
5.5.200.0100.08020.28
5.5.190.0200.06720.11
5.5.180.0030.05720.13
5.5.160.0100.04720.11
5.5.150.0070.07020.24
5.5.140.0070.08320.11
5.5.130.0100.05720.21
5.5.120.0130.05320.22
5.5.110.0100.08020.26
5.5.100.0030.08320.12
5.5.90.0100.06020.16
5.5.80.0030.05020.16
5.5.70.0070.08020.00
5.5.60.0070.07720.16
5.5.50.0100.08020.00
5.5.40.0130.07020.15
5.5.30.0100.06320.11
5.5.20.0070.07320.03
5.5.10.0030.08320.04
5.5.00.0030.04720.10
5.4.450.0030.04319.23
5.4.440.0030.08019.46
5.4.430.0130.06719.45
5.4.420.0070.07719.52
5.4.410.0200.05319.38
5.4.400.0130.06719.16
5.4.390.0070.08319.13
5.4.380.0130.07319.14
5.4.370.0070.06319.03
5.4.360.0100.07719.18
5.4.350.0130.03719.04
5.4.340.0170.07019.03
5.4.320.0000.04319.23
5.4.310.0070.08019.13
5.4.300.0030.07319.04
5.4.290.0130.07319.13
5.4.280.0030.08318.95
5.4.270.0100.06718.87
5.4.260.0070.06719.13
5.4.250.0000.05319.04
5.4.240.0000.07319.04
5.4.230.0100.06019.16
5.4.220.0030.08319.03
5.4.210.0170.06019.12
5.4.200.0030.07319.12
5.4.190.0130.07018.87
5.4.180.0000.06319.08
5.4.170.0100.07319.02
5.4.160.0000.08319.23
5.4.150.0100.07319.02
5.4.140.0100.04716.41
5.4.130.0100.07016.34
5.4.120.0130.05716.43
5.4.110.0070.05316.43
5.4.100.0100.06016.39
5.4.90.0070.05016.36
5.4.80.0100.07316.40
5.4.70.0100.07016.38
5.4.60.0070.05316.30
5.4.50.0070.04716.30
5.4.40.0130.06316.42
5.4.30.0130.05716.39
5.4.20.0100.04316.47
5.4.10.0070.04016.41
5.4.00.0070.07015.87
5.3.290.0070.08314.80
5.3.280.0100.07314.58
5.3.270.0000.08314.66
5.3.260.0000.04714.70
5.3.250.0130.03714.60
5.3.240.0100.07014.59
5.3.230.0100.07714.68
5.3.220.0030.04314.56
5.3.210.0170.07014.68
5.3.200.0030.07314.50
5.3.190.0030.07714.62
5.3.180.0100.05314.57
5.3.170.0070.07014.65
5.3.160.0030.05014.70
5.3.150.0100.07014.63
5.3.140.0200.05314.48
5.3.130.0100.07014.61
5.3.120.0170.07314.64
5.3.110.0070.04314.66
5.3.100.0100.08714.10
5.3.90.0070.04714.02
5.3.80.0100.07313.95
5.3.70.0030.04714.07
5.3.60.0070.07714.00
5.3.50.0100.07014.07
5.3.40.0170.06313.83
5.3.30.0030.04713.82
5.3.20.0030.05713.62
5.3.10.0030.05013.66
5.3.00.0070.07313.65
5.2.170.0030.03711.04
5.2.160.0030.06011.06
5.2.150.0070.06011.17
5.2.140.0070.06311.26
5.2.130.0100.04311.02
5.2.120.0070.06311.16
5.2.110.0070.03311.23
5.2.100.0030.05710.96
5.2.90.0000.05011.20
5.2.80.0070.04711.14
5.2.70.0030.06311.24
5.2.60.0130.05711.15
5.2.50.0030.06011.13
5.2.40.0100.04310.98
5.2.30.0100.05311.01
5.2.20.0000.06310.88
5.2.10.0000.06310.85
5.2.00.0030.04010.85
5.1.60.0030.0509.89
5.1.50.0000.0479.98
5.1.40.0070.0309.96
5.1.30.0030.05710.27
5.1.20.0030.05310.39
5.1.10.0000.0609.91
5.1.00.0030.05710.16
5.0.50.0130.0308.55
5.0.40.0030.0408.48
5.0.30.0070.0638.32
5.0.20.0070.0408.05
5.0.10.0030.0438.18
5.0.00.0030.0638.20
4.4.90.0070.0307.42
4.4.80.0000.0307.42
4.4.70.0000.0377.42
4.4.60.0030.0337.42
4.4.50.0000.0277.42
4.4.40.0070.0237.42
4.4.30.0000.0377.42
4.4.20.0070.0237.42
4.4.10.0030.0177.42
4.4.00.0070.0477.42
4.3.110.0000.0237.42
4.3.100.0000.0337.42
4.3.90.0000.0337.42
4.3.80.0030.0537.42
4.3.70.0030.0237.42
4.3.60.0000.0337.42
4.3.50.0000.0377.42
4.3.40.0070.0407.42
4.3.30.0030.0307.42
4.3.20.0030.0307.42
4.3.10.0000.0337.42
4.3.00.0000.0277.42

preferences:
30.22 ms | 400 KiB | 5 Q