3v4l.org

run code in 300+ PHP versions simultaneously
<?php //all uppercase letters 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.9bO3CwzA.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.40.0190.00018.82
8.3.30.0140.00019.10
8.3.20.0030.00620.21
8.3.10.0040.00423.66
8.3.00.0050.00319.26
8.2.170.0140.00722.96
8.2.160.0110.00420.37
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00721.16
8.2.110.0050.00520.53
8.2.100.0090.00318.04
8.2.90.0000.00719.08
8.2.80.0000.00817.97
8.2.70.0080.00017.38
8.2.60.0040.00417.91
8.2.50.0000.00918.07
8.2.40.0000.00818.22
8.2.30.0000.00818.06
8.2.20.0040.00417.69
8.2.10.0030.00317.80
8.2.00.0040.00417.46
8.1.270.0040.00423.84
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0080.00023.74
8.1.230.0070.00419.16
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0030.00617.10
8.1.190.0050.00317.10
8.1.180.0030.00518.10
8.1.170.0040.00418.58
8.1.160.0040.00421.82
8.1.150.0000.00818.67
8.1.140.0000.00717.26
8.1.130.0000.00717.77
8.1.120.0050.00217.23
8.1.110.0020.00517.30
8.1.100.0030.00517.29
8.1.90.0040.00417.21
8.1.80.0040.00417.36
8.1.70.0070.00017.34
8.1.60.0030.00517.45
8.1.50.0030.00517.39
8.1.40.0000.00717.38
8.1.30.0080.00017.30
8.1.20.0070.00017.53
8.1.10.0040.00417.30
8.1.00.0000.00717.41
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0000.00818.31
8.0.270.0070.00017.11
8.0.260.0060.00017.11
8.0.250.0000.00716.86
8.0.240.0030.00616.88
8.0.230.0030.00316.82
8.0.220.0070.00016.68
8.0.210.0030.00316.78
8.0.200.0030.00316.86
8.0.190.0040.00416.87
8.0.180.0040.00416.68
8.0.170.0030.00516.80
8.0.160.0070.00016.82
8.0.150.0040.00416.61
8.0.140.0000.00716.66
8.0.130.0060.00013.20
8.0.120.0000.00816.75
8.0.110.0030.00616.67
8.0.100.0040.00416.71
8.0.90.0040.00416.64
8.0.80.0030.01716.71
8.0.70.0000.00816.60
8.0.60.0040.00416.70
8.0.50.0000.00716.65
8.0.30.0130.00817.04
8.0.20.0110.01317.40
8.0.10.0000.01016.99
8.0.00.0100.00716.68
7.4.330.0000.00515.00
7.4.320.0030.00316.41
7.4.300.0000.00616.29
7.4.290.0000.00616.48
7.4.280.0060.00316.30
7.4.270.0030.00516.33
7.4.260.0030.00316.36
7.4.250.0040.00416.46
7.4.240.0030.00516.49
7.4.230.0030.00316.41
7.4.220.0150.01216.52
7.4.210.0070.00716.52
7.4.200.0030.00316.55
7.4.160.0160.00616.24
7.4.150.0070.01317.40
7.4.140.0090.00917.86
7.4.130.0090.00716.48
7.4.120.0090.00816.39
7.4.110.0130.00416.37
7.4.100.0120.00616.45
7.4.90.0100.00716.45
7.4.80.0090.01519.39
7.4.70.0070.01116.39
7.4.60.0120.00916.37
7.4.50.0000.00416.24
7.4.40.0120.00316.48
7.4.30.0000.01616.50
7.4.00.0130.00514.83
7.3.330.0020.00212.94
7.3.320.0050.00012.86
7.3.310.0000.00816.25
7.3.300.0060.00016.17
7.3.290.0130.00516.09
7.3.280.0060.00916.13
7.3.270.0090.00917.40
7.3.260.0130.00616.20
7.3.250.0090.00816.17
7.3.240.0060.01016.48
7.3.230.0140.00316.39
7.3.210.0080.00816.33
7.3.200.0070.01019.39
7.3.190.0120.00916.11
7.3.180.0040.01216.32
7.3.170.0040.01216.27
7.3.160.0120.00316.38
7.3.120.0060.01214.66
7.3.110.0090.00914.65
7.3.100.0070.00714.80
7.3.90.0060.00614.79
7.3.80.0060.00914.59
7.3.70.0080.00714.76
7.3.60.0050.00914.63
7.3.50.0050.00814.60
7.3.40.0070.00514.64
7.3.30.0080.00614.64
7.3.20.0070.00916.48
7.3.10.0060.00716.36
7.3.00.0070.00916.45
7.2.330.0030.01716.59
7.2.320.0130.00516.30
7.2.310.0030.01316.46
7.2.300.0100.01316.31
7.2.290.0140.00316.48
7.2.250.0090.00914.94
7.2.240.0040.01514.88
7.2.230.0080.00814.87
7.2.220.0020.01114.93
7.2.210.0070.00914.84
7.2.200.0040.01114.90
7.2.190.0060.00714.71
7.2.180.0050.01014.75
7.2.170.0070.00814.97
7.2.160.0030.01014.90
7.2.150.0030.01316.72
7.2.140.0060.00916.85
7.2.130.0070.00416.82
7.2.120.0030.00716.99
7.2.110.0000.01316.64
7.2.100.0120.00416.95
7.2.90.0090.00916.98
7.2.80.0040.01516.60
7.2.70.0070.00716.86
7.2.60.0100.00316.62
7.2.50.0000.01316.71
7.2.40.0060.00916.82
7.2.30.0110.00416.86
7.2.20.0070.00716.68
7.2.10.0040.01116.52
7.2.00.0060.01017.95
7.1.330.0020.01315.74
7.1.320.0050.01115.58
7.1.310.0060.01115.57
7.1.300.0040.00915.54
7.1.290.0070.00515.55
7.1.280.0060.00615.79
7.1.270.0060.00715.54
7.1.260.0010.01115.62
7.1.250.0040.00415.69
7.1.100.0030.00618.20
7.1.70.0030.00917.07
7.1.60.0150.00619.46
7.1.50.0040.01116.86
7.1.00.0070.07322.30
7.0.200.0070.00016.35
7.0.140.0030.07322.07
7.0.60.0000.04320.01
7.0.50.0070.08017.80
7.0.40.0030.09020.23
7.0.30.0270.07720.17
7.0.20.0330.06320.30
7.0.10.0000.09020.30
7.0.00.0070.05320.16
5.6.280.0030.07320.88
5.6.210.0000.04320.50
5.6.200.0100.04718.19
5.6.190.0000.04720.40
5.6.180.0100.08020.63
5.6.170.0170.04720.47
5.6.160.0100.04720.41
5.6.150.0030.08318.18
5.6.140.0130.06318.15
5.6.130.0070.06018.21
5.6.120.0030.08321.04
5.6.110.0070.09021.09
5.6.100.0070.07721.02
5.6.90.0070.05721.07
5.6.80.0070.06720.39
5.6.70.4000.04020.50
5.5.350.0130.08020.38
5.5.340.0030.07718.02
5.5.330.0130.07020.21
5.5.320.0000.04320.29
5.5.310.0230.08320.30
5.5.300.0100.07317.98
5.5.290.0000.09017.91
5.5.280.0130.07720.84
5.5.270.0030.08020.95
5.5.260.0070.07720.63
5.5.250.0100.07320.77
5.5.240.0200.07320.22
5.4.450.0170.03719.41
5.4.440.0330.03019.11
5.4.430.0030.05319.46
5.4.420.0470.05019.57
5.4.410.0370.04319.27
5.4.400.0130.04718.81
5.4.390.0230.04019.25
5.4.380.0370.07718.67
5.4.370.0300.05718.61
5.4.360.0370.05018.63
5.4.350.0500.06718.55
5.4.340.0370.05318.70
5.4.320.0060.04712.45
5.4.310.0060.04112.45
5.4.300.0040.03712.45
5.4.290.0060.04512.45
5.4.280.0030.04212.34
5.4.270.0080.03312.34
5.4.260.0100.03412.34
5.4.250.0070.03612.34
5.4.240.0050.03712.35
5.4.230.0070.03612.34
5.4.220.0050.04412.34
5.4.210.0080.03512.34
5.4.200.0060.03512.34
5.4.190.0090.03012.34
5.4.180.0070.03612.33
5.4.170.0070.04412.34
5.4.160.0060.03512.34
5.4.150.0050.03512.34
5.4.140.0030.03812.02
5.4.130.0050.04112.01
5.4.120.0070.03711.97
5.4.110.0050.04811.96
5.4.100.0070.03511.96
5.4.90.0010.04911.97
5.4.80.0050.04311.96
5.4.70.0060.03411.96
5.4.60.0040.03611.96
5.4.50.0090.05311.96
5.4.40.0050.03511.95
5.4.30.0060.03511.95
5.4.20.0030.04811.95
5.4.10.0070.03911.95
5.4.00.0070.03411.43
5.3.290.0080.04012.80
5.3.280.0070.04612.71
5.3.270.0020.04712.72
5.3.260.0080.03812.72
5.3.250.0120.04412.72
5.3.240.0070.03512.71
5.3.230.0050.03712.71
5.3.220.0050.03612.68
5.3.210.0070.03912.68
5.3.200.0080.04312.68
5.3.190.0070.03712.68
5.3.180.0090.04312.67
5.3.170.0090.03212.67
5.3.160.0080.04112.67
5.3.150.0050.04412.67
5.3.140.0040.03812.66
5.3.130.0040.04012.66
5.3.120.0080.04712.66
5.3.110.0050.04412.66
5.3.100.0070.04512.12
5.3.90.0060.04112.09
5.3.80.0050.03612.08
5.3.70.0040.04412.07
5.3.60.0090.04812.06
5.3.50.0060.03512.00
5.3.40.0050.03612.00
5.3.30.0060.03511.94
5.3.20.0070.03311.72
5.3.10.0080.03211.69
5.3.00.0060.03511.68
5.2.170.0060.0289.18
5.2.160.0040.0299.18
5.2.150.0050.0309.18
5.2.140.0040.0329.17
5.2.130.0040.0299.13
5.2.120.0060.0279.14
5.2.110.0050.0299.14
5.2.100.0090.0239.14
5.2.90.0080.0329.14
5.2.80.0040.0319.14
5.2.70.0050.0309.14
5.2.60.0050.0289.08
5.2.50.0060.0349.05
5.2.40.0060.0279.03
5.2.30.0070.0279.01
5.2.20.0040.0299.00
5.2.10.0040.0288.91
5.2.00.0030.0308.78
5.1.60.0020.0258.06
5.1.50.0040.0248.05
5.1.40.0050.0238.04
5.1.30.0030.0268.39
5.1.20.0040.0268.41
5.1.10.0030.0268.13
5.1.00.0020.0278.13
5.0.50.0030.0216.61
5.0.40.0040.0186.47
5.0.30.0030.0316.29
5.0.20.0050.0246.26
5.0.10.0030.0226.23
5.0.00.0040.0296.23
4.4.90.0040.0144.78
4.4.80.0040.0134.76
4.4.70.0040.0194.75
4.4.60.0030.0164.76
4.4.50.0020.0164.77
4.4.40.0040.0244.71
4.4.30.0040.0144.76
4.4.20.0010.0174.84
4.4.10.0000.0184.85
4.4.00.0030.0254.76
4.3.110.0020.0164.67
4.3.100.0030.0154.67
4.3.90.0010.0164.63
4.3.80.0060.0204.58
4.3.70.0010.0154.63
4.3.60.0000.0164.63
4.3.50.0040.0144.63
4.3.40.0030.0234.54
4.3.30.0000.0173.27
4.3.20.0030.0153.25
4.3.10.0000.0173.22
4.3.00.0000.01718.41

preferences:
35.59 ms | 400 KiB | 5 Q