3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Mary Had A Little Lamb and She LOVED It So"; $str = strtoupper($str); $strlower = strtolower($str); $strlcwords = lcfirst($str); $strucwords = ucwords($str); echo $str."\t"."//Uppercase"; echo "\n"; echo $strlower."\t"."//Make first letter in every word to be small"; echo "\n"; echo $strlcwords."\t"."//Make first letter in sentence to be small"; echo "\n"; echo $strucwords."\t"."//First character of each word to be Uppercase"; echo "\n"; ?>

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.0180.00318.43
8.3.50.0070.01122.05
8.3.40.0040.01818.72
8.3.30.0120.00318.55
8.3.20.0040.00419.34
8.3.10.0000.00721.90
8.3.00.0070.00020.84
8.2.180.0180.00416.38
8.2.170.0070.00722.96
8.2.160.0130.00719.06
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0090.00018.80
8.2.110.0030.00619.12
8.2.100.0040.00817.93
8.2.90.0000.00819.21
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0030.00918.03
8.2.50.0000.00818.10
8.2.40.0060.00320.64
8.2.30.0000.00819.21
8.2.20.0050.00317.66
8.2.10.0070.00018.05
8.2.00.0040.00418.23
8.1.280.0090.00625.92
8.1.270.0000.00723.88
8.1.260.0100.00026.35
8.1.250.0070.00028.09
8.1.240.0000.00921.30
8.1.230.0110.00017.76
8.1.220.0040.00417.75
8.1.210.0040.00418.77
8.1.200.0060.00317.25
8.1.190.0040.00416.98
8.1.180.0080.00018.10
8.1.170.0030.00618.65
8.1.160.0040.00418.93
8.1.150.0040.00418.83
8.1.140.0040.00419.57
8.1.130.0020.00517.39
8.1.120.0070.00017.36
8.1.110.0080.00017.43
8.1.100.0030.00517.47
8.1.90.0000.00717.35
8.1.80.0000.00817.36
8.1.70.0030.00517.42
8.1.60.0040.00417.57
8.1.50.0000.00917.52
8.1.40.0080.00017.52
8.1.30.0030.00617.52
8.1.20.0020.00517.54
8.1.10.0060.00317.41
8.1.00.0040.00717.39
8.0.300.0030.00618.77
8.0.290.0030.00516.75
8.0.280.0050.00318.46
8.0.270.0070.00017.26
8.0.260.0040.00416.83
8.0.250.0030.00316.92
8.0.240.0050.00317.02
8.0.230.0030.00316.97
8.0.220.0070.00016.91
8.0.210.0020.00516.96
8.0.200.0030.00316.96
8.0.190.0030.00316.89
8.0.180.0040.00416.88
8.0.170.0080.00016.98
8.0.160.0060.00316.91
8.0.150.0070.00016.88
8.0.140.0030.00816.75
8.0.130.0050.00013.28
8.0.120.0050.00316.85
8.0.110.0040.00416.77
8.0.100.0040.00416.98
8.0.90.0000.00716.92
8.0.80.0100.00616.93
8.0.70.0030.00516.96
8.0.60.0030.00316.77
8.0.50.0000.00716.88
8.0.30.0130.00417.09
8.0.20.0120.00917.40
8.0.10.0040.00416.84
8.0.00.0140.00716.57
7.4.330.0040.00015.08
7.4.320.0000.00616.54
7.4.300.0030.00316.52
7.4.290.0000.00616.45
7.4.280.0040.00416.36
7.4.270.0030.00316.45
7.4.260.0030.00316.38
7.4.250.0040.00416.39
7.4.240.0000.00716.34
7.4.230.0040.00416.43
7.4.220.0070.01016.50
7.4.210.0150.00616.57
7.4.200.0070.00016.54
7.4.160.0090.00616.40
7.4.150.0140.00817.40
7.4.140.0130.00817.86
7.4.130.0070.00916.59
7.4.120.0060.01116.62
7.4.110.0100.00716.55
7.4.100.0040.01416.62
7.4.90.0080.00916.29
7.4.80.0160.00719.39
7.4.70.0060.01116.36
7.4.60.0120.00416.48
7.4.50.0040.01116.41
7.4.40.0100.00616.45
7.4.30.0070.01016.48
7.4.00.0100.00414.78
7.3.330.0030.00313.02
7.3.320.0060.00013.20
7.3.310.0000.00716.38
7.3.300.0030.00316.27
7.3.290.0050.01016.27
7.3.280.0060.01116.26
7.3.270.0100.00617.40
7.3.260.0080.00916.40
7.3.250.0140.00316.25
7.3.240.0110.00716.55
7.3.230.0150.00316.39
7.3.210.0080.00816.53
7.3.200.0120.00416.50
7.3.190.0060.00916.57
7.3.180.0090.01316.49
7.3.170.0050.01116.50
7.3.160.0120.00616.50
7.3.120.0030.01515.10
7.3.110.0030.01314.91
7.3.100.0030.01214.75
7.3.90.0040.01214.65
7.3.80.0000.01715.02
7.3.70.0090.00014.72
7.3.60.0060.01214.73
7.3.50.0080.00314.71
7.3.40.0100.00714.90
7.3.30.0060.00914.89
7.3.20.0040.00416.80
7.3.10.0110.00416.63
7.3.00.0090.00616.60
7.2.330.0060.01116.46
7.2.320.0090.00616.29
7.2.310.0110.00716.40
7.2.300.0100.01016.64
7.2.290.0180.00016.63
7.2.250.0100.00715.17
7.2.240.0070.01015.34
7.2.230.0090.00615.07
7.2.220.0090.00914.93
7.2.210.0070.00715.34
7.2.200.0000.01115.09
7.2.190.0100.00715.15
7.2.180.0040.00815.10
7.2.170.0060.00615.05
7.2.130.0090.01116.79
7.2.120.0080.00716.60
7.2.110.0060.01016.98
7.2.100.0070.01216.81
7.2.90.0080.00916.79
7.2.80.0130.00816.92
7.2.70.0080.00616.75
7.2.60.0100.00816.83
7.2.50.0090.00816.80
7.2.40.0060.01016.85
7.2.30.0090.00616.90
7.2.20.0090.00716.91
7.2.10.0080.00616.96
7.2.00.0090.00717.50
7.1.330.0040.01215.92
7.1.320.0040.01515.65
7.1.310.0040.00815.88
7.1.300.0000.00915.72
7.1.290.0060.00615.82
7.1.280.0120.00315.68
7.1.270.0090.00015.75
7.1.260.0080.00315.55
7.1.250.0060.00815.44
7.1.200.0060.00915.77
7.1.100.0030.00818.32
7.1.70.0050.00217.14
7.1.60.0170.00719.47
7.1.00.0100.07022.36
7.0.200.0530.00714.74
7.0.70.1430.05019.95
7.0.60.1330.06020.06
7.0.50.1300.08020.26
7.0.40.1470.06720.33
7.0.30.1330.06020.38
7.0.20.1370.06320.39
7.0.10.1230.05020.32
7.0.00.1200.06020.24
5.6.280.0100.06720.88
5.6.220.0630.06720.47
5.6.210.1230.04720.55
5.6.200.0930.06721.12
5.6.190.1130.06021.08
5.6.180.1130.06721.05
5.6.170.1130.06021.01
5.6.160.1100.06021.11
5.6.150.1270.05721.15
5.6.140.0070.06321.05
5.6.130.0100.06721.07
5.6.120.0100.08321.07
5.6.110.0530.05721.00
5.6.100.0930.05721.10
5.6.90.0900.06320.97
5.6.80.1230.05720.54
5.6.70.1100.06020.46
5.6.60.0970.05020.43
5.6.50.1100.06020.51
5.6.40.1000.05020.43
5.6.30.1030.05320.55
5.6.20.1200.05020.37
5.6.10.1130.05320.44
5.6.00.1130.05020.37
5.5.360.1170.06720.39
5.5.350.1030.05320.41
5.5.340.0970.05320.79
5.5.330.1300.06320.82
5.5.320.1170.05320.96
5.5.310.1300.06320.82
5.5.300.0200.05320.94
5.5.290.0900.06020.96
5.5.280.0130.05720.77
5.5.270.1030.06320.80
5.5.260.0970.07320.86
5.5.250.0930.06320.79
5.5.240.1170.05720.05
5.5.230.1000.05020.30
5.5.220.1230.05320.21
5.5.210.1330.03720.31
5.5.200.1100.04320.29
5.5.190.0970.05320.30
5.5.180.1170.06020.33
5.5.160.1030.05020.30
5.5.150.0930.05320.28
5.5.140.0830.06020.11
5.5.130.1030.04720.16
5.5.120.1230.06320.32
5.5.110.1170.05720.16
5.5.100.1100.07720.06
5.5.90.1000.04720.14
5.5.80.1230.05720.12
5.5.70.1170.05319.99
5.5.60.1200.04720.14
5.5.50.1170.05020.11
5.5.40.1100.05720.07
5.5.30.1170.05020.10
5.5.20.1070.05320.18
5.5.10.1430.05719.99
5.5.00.1300.05319.93

preferences:
38.35 ms | 401 KiB | 5 Q