3v4l.org

run code in 300+ PHP versions simultaneously
<?php print(strtoupper("the quick brown fox jumps over the lazy dog.<br>")); //all lowercase letters print(strtolower("THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG<br>")); // make a string's first character uppercase print(ucfirst("the quick brown fox jumps over the lazy dog.<br>")); // make a string's first character of all the words uppercase print(ucwords("the quick brown fox jumps over the lazy dog.<br>")); ?> - See more at: http://www.w3resource.com/php-exercises/php-string-exercises.php#sthash.bzfnf2JW.dpuf

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.0100.00718.43
8.3.50.0110.01222.06
8.3.40.0060.00918.80
8.3.30.0150.00618.92
8.3.20.0000.00820.34
8.3.10.0080.00020.40
8.3.00.0000.00819.68
8.2.180.0100.00716.38
8.2.170.0070.01322.96
8.2.160.0050.01020.26
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00022.26
8.2.110.0060.00322.25
8.2.100.0090.00317.84
8.2.90.0060.00318.89
8.2.80.0000.00817.97
8.2.70.0030.00717.50
8.2.60.0080.00017.93
8.2.50.0000.00818.10
8.2.40.0000.00718.03
8.2.30.0040.00419.10
8.2.20.0000.00717.63
8.2.10.0050.00317.93
8.2.00.0070.00017.47
8.1.280.0100.01025.92
8.1.270.0000.00822.25
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0090.00024.01
8.1.230.0110.00020.39
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.13
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0090.00018.50
8.1.160.0040.00422.00
8.1.150.0070.00018.75
8.1.140.0080.00017.20
8.1.130.0000.00717.72
8.1.120.0000.00717.19
8.1.110.0040.00417.31
8.1.100.0040.00417.26
8.1.90.0070.00017.41
8.1.80.0040.00417.29
8.1.70.0000.00717.34
8.1.60.0000.00917.50
8.1.50.0070.00017.30
8.1.40.0030.00617.41
8.1.30.0080.00017.46
8.1.20.0000.00817.51
8.1.10.0000.00817.44
8.1.00.0050.00317.39
8.0.300.0040.00418.77
8.0.290.0060.00316.58
8.0.280.0000.00718.37
8.0.270.0030.00317.29
8.0.260.0030.00317.30
8.0.250.0070.00016.86
8.0.240.0030.00316.91
8.0.230.0060.00016.78
8.0.220.0000.00716.79
8.0.210.0070.00016.67
8.0.200.0040.00416.81
8.0.190.0000.00716.87
8.0.180.0040.00416.70
8.0.170.0000.00816.85
8.0.160.0070.00016.64
8.0.150.0030.00316.62
8.0.140.0000.00716.63
8.0.130.0030.00313.26
8.0.120.0070.00016.63
8.0.110.0080.00016.68
8.0.100.0020.00516.56
8.0.90.0000.00816.78
8.0.80.0090.00616.79
8.0.70.0070.00016.70
8.0.60.0000.00716.63
8.0.50.0070.00016.64
8.0.30.0110.00816.89
8.0.20.0090.01317.40
8.0.10.0070.00016.77
8.0.00.0060.01316.59
7.4.330.0070.00015.00
7.4.320.0000.00716.40
7.4.300.0000.00716.32
7.4.290.0000.00716.39
7.4.280.0050.00216.48
7.4.270.0000.00716.45
7.4.260.0080.00016.46
7.4.250.0040.00416.34
7.4.240.0030.00316.48
7.4.230.0030.00316.22
7.4.220.0030.01416.43
7.4.210.0070.00716.34
7.4.200.0030.00316.26
7.4.160.0120.00416.41
7.4.150.0080.01717.40
7.4.140.0110.00617.86
7.4.130.0090.00816.47
7.4.120.0110.00716.40
7.4.110.0120.01216.35
7.4.100.0080.00816.48
7.4.90.0110.00616.31
7.4.80.0100.01116.43
7.4.70.0210.00016.45
7.4.60.0130.00316.44
7.4.50.0000.00416.41
7.4.40.0090.01516.21
7.4.30.0150.00916.48
7.4.00.0030.01215.04
7.3.330.0000.00512.98
7.3.320.0020.00213.00
7.3.310.0040.00416.08
7.3.300.0070.00016.09
7.3.290.0070.00716.25
7.3.280.0080.00816.13
7.3.270.0090.01517.40
7.3.260.0030.01416.13
7.3.250.0090.00816.33
7.3.240.0030.01316.16
7.3.230.0070.01116.39
7.3.210.0060.01216.24
7.3.200.0090.01319.39
7.3.190.0130.00316.13
7.3.180.0040.01116.26
7.3.170.0090.00616.27
7.3.160.0110.00516.10
7.2.330.0070.01016.44
7.2.320.0170.00716.64
7.2.310.0090.01216.28
7.2.300.0070.01316.41
7.2.290.0100.00616.43
7.2.00.0000.01219.00
7.1.100.0000.01317.83
7.1.70.0030.00316.73
7.1.60.0070.00719.32
7.1.50.0160.00916.76
7.1.00.0030.07722.45
7.0.200.0030.00316.34
7.0.140.0070.06722.12
7.0.60.0170.06019.88
7.0.50.0030.05317.88
7.0.40.0070.08720.05
7.0.30.0230.05720.31
7.0.20.0270.06020.19
7.0.10.0230.04720.09
7.0.00.0070.08020.20
5.6.280.0070.06721.04
5.6.210.0200.06320.59
5.6.200.0070.04318.19
5.6.190.0030.09020.39
5.6.180.0200.04320.56
5.6.170.0230.06020.39
5.6.160.0100.08320.46
5.6.150.0100.08318.11
5.6.140.0100.03718.15
5.6.130.0230.06718.18
5.6.120.0000.05321.14
5.6.110.0070.07720.98
5.6.100.0270.07020.88
5.6.90.0000.07320.96
5.6.80.0070.08020.43
5.6.70.3930.03320.49
5.5.350.0070.04320.29
5.5.340.0000.05017.99
5.5.330.0100.08320.23
5.5.320.0270.04320.24
5.5.310.0470.06020.29
5.5.300.0070.08017.92
5.5.290.0100.08017.98
5.5.280.0070.08320.79
5.5.270.0030.04720.86
5.5.260.0200.07720.86
5.5.250.0000.08320.46
5.5.240.0330.06320.26
5.4.450.3500.04019.25
5.4.440.3770.03719.23
5.4.430.3570.04019.45
5.4.420.3330.04019.45
5.4.410.3900.03319.44
5.4.400.4330.03718.79
5.4.390.3930.03719.07
5.4.380.3900.04019.06
5.4.370.3870.04019.17
5.4.360.4270.02318.88
5.4.350.4470.03319.09
5.4.340.4400.03318.80
5.4.320.4070.03319.25
5.4.310.3530.03718.95
5.4.300.2970.03718.79
5.4.290.3200.04018.93
5.4.280.3270.03318.88
5.4.270.3630.03718.88
5.4.260.2970.03318.93
5.4.250.3430.03319.08
5.4.240.3770.03319.16
5.4.230.4130.03318.92
5.4.220.4330.04019.25
5.4.210.4500.03319.05
5.4.200.3900.03718.91
5.4.190.3730.03318.91
5.4.180.3400.04318.80
5.4.170.4370.04019.07
5.4.160.4430.03719.20
5.4.150.4030.03019.14
5.4.140.4100.04316.17
5.4.130.3470.03316.23
5.4.120.4470.03316.30
5.4.110.3700.03716.43
5.4.100.3830.03316.29
5.4.90.3500.03016.34
5.4.80.4030.03716.44
5.4.70.3900.03716.38
5.4.60.3330.03016.39
5.4.50.3830.03716.41
5.4.40.3400.04016.52
5.4.30.3630.03716.39
5.4.20.3800.03016.50
5.4.10.3630.03316.33
5.4.00.3570.02715.74
5.3.290.3470.04014.54
5.3.280.4100.04314.54
5.3.270.3900.04014.54
5.3.260.4230.04014.44
5.3.250.4570.03714.43
5.3.240.4100.02714.69
5.3.230.4330.03314.58
5.3.220.4200.04014.50
5.3.210.3870.03714.41
5.3.200.4030.03714.51
5.3.190.3770.03714.56
5.3.180.3770.03014.61
5.3.170.3470.04014.39
5.3.160.3930.03314.50
5.3.150.4170.03714.41
5.3.140.3570.04014.59
5.3.130.3770.03314.39
5.3.120.3270.03314.52
5.3.110.4000.03314.49
5.3.100.3700.03313.88
5.3.90.4300.03713.97
5.3.80.4070.04013.95
5.3.70.4070.04013.89
5.3.60.3970.03013.90
5.3.50.4400.03713.88
5.3.40.4300.03713.79
5.3.30.3470.03713.68
5.3.20.3700.03713.49
5.3.10.3600.04013.59
5.3.00.3970.03713.41
5.2.170.3830.02710.99
5.2.160.3430.03011.30
5.2.150.3700.02710.99
5.2.140.2870.03310.98
5.2.130.3100.02711.01
5.2.120.2900.02711.25
5.2.110.3130.03311.12
5.2.100.3030.03310.95
5.2.90.3130.03311.11
5.2.80.3330.03011.26
5.2.70.3400.03011.10
5.2.60.3400.03710.89
5.2.50.3500.02010.90
5.2.40.2530.03311.01
5.2.30.2300.03310.82
5.2.20.2700.02710.89
5.2.10.3030.02710.73
5.2.00.2900.02310.82
5.1.60.3070.0279.91
5.1.50.2870.02010.15
5.1.40.3130.02710.09
5.1.30.2800.03010.41
5.1.20.2870.02010.24
5.1.10.1400.02310.18
5.1.00.2630.02710.00
5.0.50.1230.0209.86
5.0.40.1200.0209.86
5.0.30.1400.0339.86
5.0.20.1430.0209.86
5.0.10.1170.0239.86
5.0.00.1270.0279.86
4.4.90.1470.0179.86
4.4.80.1200.0179.86
4.4.70.1500.0139.86
4.4.60.1700.0139.86
4.4.50.1600.0209.86
4.4.40.1800.0279.86
4.4.30.1430.0139.86
4.4.20.1230.0139.86
4.4.10.1430.0179.86
4.4.00.1430.0279.86
4.3.110.1400.0179.86
4.3.100.1370.0179.86
4.3.90.1230.0109.86
4.3.80.1430.0309.86
4.3.70.1130.0139.86
4.3.60.1300.0139.86
4.3.50.1530.0179.86
4.3.40.1700.0279.86
4.3.30.0630.0179.86
4.3.20.0830.0209.86
4.3.10.0700.0209.86
4.3.00.0730.0139.86

preferences:
46.74 ms | 401 KiB | 5 Q