3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = mktime(23, 59, 59, 09, 06, 2013); $format1 = "%H:%m %p"; $format2 = "%H:%m %P"; assert(strftime($format1, $time) === '11:59 PM'); // as documented on php.net/strftime, %p => PM assert(strftime($format2, $time) === '11:59 pm'); // and %P => pm assert(strptime($format1, '11:59 PM') === false); assert(strptime($format1, '11:59 pm') === false);

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)
5.6.280.0000.07721.09
5.6.210.0070.04020.60
5.6.200.0070.06318.16
5.6.190.0100.03720.21
5.6.180.0030.04020.39
5.6.170.0070.04020.27
5.6.160.0030.04020.26
5.6.150.0030.04320.10
5.6.140.0100.07720.39
5.6.130.0070.06320.47
5.6.120.0100.07320.41
5.6.110.0100.07320.31
5.6.100.0230.06320.34
5.6.90.0070.09020.15
5.6.80.0100.07319.55
5.6.70.0070.04319.83
5.6.60.0130.06719.75
5.6.50.0130.03719.56
5.6.40.0100.07319.46
5.6.30.0030.05019.54
5.6.20.0130.06319.72
5.6.10.0030.04319.67
5.6.00.0030.04319.78
5.5.350.0000.04320.41
5.5.340.0100.07017.91
5.5.330.0070.04020.28
5.5.320.0030.04020.44
5.5.310.0070.03720.43
5.5.300.0030.04320.17
5.5.290.0030.04719.91
5.5.280.0030.05019.97
5.5.270.0070.07019.90
5.5.260.0070.05020.11
5.5.250.0070.06720.02
5.5.240.0070.06719.65
5.5.230.0070.05719.55
5.5.220.0070.08019.45
5.5.210.0070.06719.61
5.5.200.0070.03719.46
5.5.190.0070.06719.55
5.5.180.0030.06019.59
5.5.160.0070.07719.46
5.5.150.0170.05719.48
5.5.140.0030.05719.27
5.5.130.0030.07719.46
5.5.120.0070.07319.41
5.5.110.0000.07319.48
5.5.100.0100.07019.40
5.5.90.0100.07019.53
5.5.80.0100.04319.43
5.5.70.0070.06319.37
5.5.60.0130.05719.21
5.5.50.0170.07319.17
5.5.40.0170.06319.44
5.5.30.0030.05319.43
5.5.20.0200.05719.46
5.5.10.0170.04319.46
5.5.00.0100.04319.34
5.4.450.0030.07019.42
5.4.440.0030.04319.40
5.4.430.0200.06019.47
5.4.420.0070.04319.49
5.4.410.0070.07719.28
5.4.400.0030.04318.92
5.4.390.0170.07019.13
5.4.380.0070.07719.09
5.4.370.0000.04719.18
5.4.360.0070.04319.07
5.4.350.0000.05318.92
5.4.340.0130.07719.14
5.4.320.0030.08019.09
5.4.310.0000.05019.00
5.4.300.0070.03719.11
5.4.290.0030.06719.20
5.4.280.0100.07319.14
5.4.270.0070.07718.78
5.4.260.0100.04319.11
5.4.250.0070.06319.14
5.4.240.0070.04018.91
5.4.230.0030.06319.15
5.4.220.0070.05319.16
5.4.210.0130.03718.80
5.4.200.0100.07019.07
5.4.190.0200.06319.13
5.4.180.0070.08018.91
5.4.170.0070.06018.79
5.4.160.0070.07319.16
5.4.150.0070.08318.89
5.4.140.0000.06016.31
5.4.130.0130.06716.38
5.4.120.0070.06716.48
5.4.110.0000.05316.28
5.4.100.0070.03316.45
5.4.90.0100.06716.65
5.4.80.0030.04316.28
5.4.70.0030.04716.27
5.4.60.0070.07016.32
5.4.50.0070.06716.30
5.4.40.0030.04016.38
5.4.30.0100.06716.36
5.4.20.0100.07316.36
5.4.10.0100.05316.57
5.4.00.0030.04715.61
5.3.290.0030.04714.75
5.3.280.0100.07314.52
5.3.270.0070.05714.53
5.3.260.0070.04314.53
5.3.250.0200.04314.62
5.3.240.0030.08014.54
5.3.230.0070.08014.56
5.3.220.0070.07314.58
5.3.210.0070.06714.54
5.3.200.0070.06314.52
5.3.190.0030.05714.46
5.3.180.0070.08014.50
5.3.170.0070.07314.50
5.3.160.0000.05014.50
5.3.150.0030.04014.46
5.3.140.0000.08014.37
5.3.130.0170.06714.45
5.3.120.0000.05714.43
5.3.110.0070.05714.52
5.3.100.0070.07313.91
5.3.90.0100.06713.95
5.3.80.0030.07713.95
5.3.70.0000.04713.84
5.3.60.0030.03713.93
5.3.50.0000.04314.04
5.3.40.0030.08013.96
5.3.30.0100.06013.88
5.3.20.0000.04013.68
5.3.10.0100.03013.58
5.3.00.0100.04713.56
5.2.170.0070.04011.00
5.2.160.0030.06011.23
5.2.150.0070.06011.08
5.2.140.0000.04011.00
5.2.130.0030.02711.06
5.2.120.0070.05310.95
5.2.110.0070.05710.99
5.2.100.0070.06011.07
5.2.90.0070.03711.18
5.2.80.0070.03311.07
5.2.70.0030.06311.08
5.2.60.0000.04711.04
5.2.50.0070.05710.94
5.2.40.0030.04310.92
5.2.30.0130.05710.82
5.2.20.0030.03710.86
5.2.10.0030.03010.74
5.2.00.0100.04010.75
5.1.60.0030.0339.97
5.1.50.0100.0379.95
5.1.40.0070.0279.96
5.1.30.0070.02310.34
5.1.20.0130.01710.50
5.1.10.0030.02710.07
5.1.00.0030.02710.06
5.0.50.0000.0378.60
5.0.40.0070.0378.46
5.0.30.0000.0608.28
5.0.20.0030.0238.35
5.0.10.0000.0238.30
5.0.00.0030.0338.28
4.4.90.0030.0378.28
4.4.80.0000.0378.28
4.4.70.0030.0278.28
4.4.60.0030.0208.28
4.4.50.0000.0278.28
4.4.40.0030.0308.28
4.4.30.0030.0178.28
4.4.20.0000.0238.28
4.4.10.0100.0138.28
4.4.00.0100.0478.28
4.3.110.0000.0308.28
4.3.100.0070.0178.28
4.3.90.0000.0178.28
4.3.80.0030.0508.28
4.3.70.0070.0308.28
4.3.60.0000.0338.28
4.3.50.0030.0338.28
4.3.40.0030.0278.28
4.3.30.0000.0278.28
4.3.20.0030.0178.28
4.3.10.0000.0238.28
4.3.00.0000.0178.28

preferences:
142.2 ms | 1394 KiB | 7 Q