3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_strftime ($format, $timestamp) { $format = str_replace('%O', date('S', $timestamp), $format); return strftime($format, $timestamp); } echo my_strftime('%d-%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.0070.00715.00
7.3.110.0040.01114.97
7.3.100.0070.00714.86
7.3.90.0060.01014.81
7.3.80.0100.00314.89
7.3.70.0000.01215.01
7.3.60.0100.00314.99
7.3.50.0040.01114.72
7.3.40.0070.00414.77
7.3.30.0000.01414.96
7.3.20.0060.00916.65
7.3.10.0110.00216.63
7.3.00.0040.00916.45
7.2.240.0060.01214.96
7.2.230.0090.00615.01
7.2.220.0070.00715.19
7.2.210.0030.01015.14
7.2.200.0030.00615.19
7.2.190.0160.00014.91
7.2.180.0040.01215.16
7.2.170.0040.00815.04
7.2.160.0100.00315.07
7.2.150.0000.01116.85
7.2.140.0070.00716.84
7.2.130.0010.01116.88
7.2.120.0060.00816.74
7.2.110.0070.00716.88
7.2.100.0070.00516.83
7.2.90.0090.00716.90
7.2.80.0060.00916.67
7.2.70.0020.01216.88
7.2.60.0100.00716.74
7.2.50.0080.00616.89
7.2.40.0090.00716.77
7.2.30.0080.00816.85
7.2.20.0090.00816.79
7.2.10.0090.00816.86
7.2.00.0040.01017.68
7.1.330.0070.00716.05
7.1.320.0100.00015.71
7.1.310.0110.00715.95
7.1.300.0070.00715.56
7.1.290.0060.00615.63
7.1.280.0100.00315.98
7.1.270.0030.01015.88
7.1.260.0040.01115.87
7.1.250.0060.00615.87
7.1.100.0040.00818.39
7.1.70.0000.00817.36
7.1.60.0030.00919.30
7.1.50.0040.01816.96
7.1.00.0030.06722.31
7.0.200.0000.00817.01
7.0.140.0000.07722.15
7.0.120.0030.04322.17
7.0.100.0070.04019.96
7.0.90.0070.04319.91
7.0.80.0030.04319.93
7.0.70.0070.03719.96
7.0.60.0030.04019.77
7.0.50.0070.04020.25
7.0.40.0030.04020.10
7.0.30.0000.05020.07
7.0.20.0030.04320.00
7.0.10.0070.06019.99
7.0.00.0030.08020.04
5.6.280.0000.07720.86
5.6.250.0030.06720.54
5.6.240.0030.06320.70
5.6.230.0030.04320.66
5.6.220.0000.04320.61
5.6.210.0030.04020.77
5.6.200.0070.03721.03
5.6.190.0030.04321.17
5.6.180.0030.04021.08
5.6.170.0070.04021.11
5.6.160.0070.06321.18
5.6.150.0030.04320.95
5.6.140.0030.09021.11
5.6.130.0030.09321.05
5.6.120.0070.06721.11
5.6.110.0170.07321.13
5.6.100.0100.06021.04
5.6.90.0130.05721.15
5.6.80.0070.04020.41
5.6.70.0100.04720.40
5.6.60.0130.09020.41
5.6.50.0070.04320.40
5.6.40.0170.07020.31
5.6.30.0100.08320.43
5.6.20.0070.07320.53
5.6.10.0070.07320.47
5.6.00.0100.07720.51
5.5.380.0030.04020.43
5.5.370.0030.04020.57
5.5.360.0000.05020.35
5.5.350.0030.04020.47
5.5.340.0170.03020.83
5.5.330.0000.05020.83
5.5.320.0000.05020.91
5.5.310.0070.03320.73
5.5.300.0100.08320.89
5.5.290.0100.05720.76
5.5.280.0030.07020.84
5.5.270.0170.07020.77
5.5.260.0070.07020.78
5.5.250.0100.07720.59
5.5.240.0030.05020.14
5.5.230.0070.08020.02
5.5.220.0270.06320.21
5.5.210.0130.07720.17
5.5.200.0070.07720.24
5.5.190.0070.08320.15
5.5.180.0000.09020.25
5.5.160.0100.03720.11
5.5.150.0130.07020.14
5.5.140.0100.07320.11
5.5.130.0170.07019.99
5.5.120.0100.05320.23
5.5.110.0130.04020.07
5.5.100.0030.07720.17
5.5.90.0130.07320.09
5.5.80.0100.07320.01
5.5.70.0100.04320.03
5.5.60.0130.07020.13
5.5.50.0100.04720.14
5.5.40.0130.07020.10
5.5.30.0130.06720.05
5.5.20.0070.07320.13
5.5.10.0000.08720.12
5.5.00.0030.05320.11
5.4.450.0130.04019.36
5.4.440.0070.04319.45
5.4.430.0130.07319.50
5.4.420.0030.04719.37
5.4.410.0130.07019.23
5.4.400.0100.06719.05
5.4.390.0100.08718.90
5.4.380.0170.07018.85
5.4.370.0100.07019.03
5.4.360.0170.07019.09
5.4.350.0070.07719.05
5.4.340.0070.06719.13
5.4.320.0030.04018.90
5.4.310.0100.07019.23
5.4.300.0100.07019.18
5.4.290.0030.04718.90
5.4.280.0030.07719.09
5.4.270.0000.08019.16
5.4.260.0100.03319.12
5.4.250.0130.06318.89
5.4.240.0070.07019.22
5.4.230.0030.04319.02
5.4.220.0130.07019.04
5.4.210.0100.06319.13
5.4.200.0170.07019.20
5.4.190.0070.04719.13
5.4.180.0030.07019.01
5.4.170.0070.06718.93
5.4.160.0170.07318.80
5.4.150.0070.08019.14
5.4.140.0070.07316.42
5.4.130.0070.07016.30
5.4.120.0130.04316.45
5.4.110.0070.05016.51
5.4.100.0030.03716.50
5.4.90.0070.06016.48
5.4.80.0030.04316.39
5.4.70.0030.04316.42
5.4.60.0070.07716.48
5.4.50.0100.07016.29
5.4.40.0070.07316.53
5.4.30.0070.04016.36
5.4.20.0030.07716.31
5.4.10.0070.03316.31
5.4.00.0070.06315.86
5.3.290.0000.04714.84
5.3.280.0070.07314.84
5.3.270.0030.07714.84
5.3.260.0070.04014.84
5.3.250.0100.06714.84
5.3.240.0030.07014.84
5.3.230.0070.07714.84
5.3.220.0100.06314.84
5.3.210.0030.07314.84
5.3.200.0000.04314.84
5.3.190.0030.07314.84
5.3.180.0070.08314.84
5.3.170.0030.07714.84
5.3.160.0030.07314.84
5.3.150.0030.07314.84
5.3.140.0070.04314.84
5.3.130.0030.08314.84
5.3.120.0030.07714.84
5.3.110.0070.05014.84
5.3.100.0070.08314.84
5.3.90.0070.07314.84
5.3.80.0130.06314.84
5.3.70.0070.03314.84
5.3.60.0100.07014.84
5.3.50.0130.06714.84
5.3.40.0030.07714.84
5.3.30.0000.07014.84
5.3.20.0030.07014.84
5.3.10.0070.07014.84
5.3.00.0170.07014.84
5.2.170.0030.06314.84
5.2.160.0070.04714.84
5.2.150.0070.06314.84
5.2.140.0000.04714.84
5.2.130.0130.05714.84
5.2.120.0100.06014.84
5.2.110.0070.04314.84
5.2.100.0130.05714.84
5.2.90.0070.06014.84
5.2.80.0070.05714.84
5.2.70.0100.03314.84
5.2.60.0070.05314.84
5.2.50.0130.04314.84
5.2.40.0030.05714.84
5.2.30.0030.06014.84
5.2.20.0070.06014.84
5.2.10.0100.06314.84
5.2.00.0030.04714.84
5.1.60.0000.05714.84
5.1.50.0100.04314.84
5.1.40.0100.05314.84
5.1.30.0000.06014.84
5.1.20.0070.04314.84
5.1.10.0070.05014.84
5.1.00.0130.03714.84
5.0.50.0100.01714.84
5.0.40.0070.03314.84
5.0.30.0000.06014.84
5.0.20.0030.04014.84
5.0.10.0000.04314.84
5.0.00.0000.06014.84
4.4.90.0070.03314.84
4.4.80.0030.01714.84
4.4.70.0070.03314.84
4.4.60.0130.02314.84
4.4.50.0030.02714.84
4.4.40.0030.05314.84
4.4.30.0030.03314.84
4.4.20.0070.03314.84
4.4.10.0000.02014.84
4.4.00.0030.05314.84
4.3.110.0030.03714.84
4.3.100.0100.02714.84
4.3.90.0030.01714.84
4.3.80.0030.04714.84
4.3.70.0070.03014.84
4.3.60.0070.02714.84
4.3.50.0070.02714.84
4.3.40.0030.04314.84
4.3.30.0000.03314.84
4.3.20.0030.03314.84
4.3.10.0000.03014.84
4.3.00.0030.03314.84

preferences:
35.43 ms | 401 KiB | 5 Q