3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lowercase = "cats"; $uppercase = "DOGS"; $multiplewords = "the cats and the dogs"; echo strtoupper($lowercase); echo strtolower($uppercase); echo ucfirst($lowercase); echo ucwords($multiplewords); ?>

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.0140.00716.63
8.3.50.0040.01118.27
8.3.40.0100.00718.71
8.3.30.0140.00019.27
8.3.20.0070.00020.23
8.3.10.0080.00020.36
8.3.00.0000.00819.35
8.2.180.0130.00316.48
8.2.170.0110.00422.96
8.2.160.0130.00620.42
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00926.16
8.2.120.0040.00421.16
8.2.110.0060.00320.38
8.2.100.0090.00318.22
8.2.90.0030.00619.17
8.2.80.0040.00417.97
8.2.70.0040.00817.63
8.2.60.0050.00317.91
8.2.50.0080.00018.07
8.2.40.0050.00218.22
8.2.30.0080.00419.34
8.2.20.0050.00217.78
8.2.10.0040.00417.97
8.2.00.0040.00417.47
8.1.270.0040.00422.14
8.1.260.0030.00526.35
8.1.250.0060.00328.09
8.1.240.0000.00823.88
8.1.230.0080.00319.22
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.10
8.1.180.0030.00618.10
8.1.170.0030.00518.51
8.1.160.0000.00721.94
8.1.150.0070.00018.77
8.1.140.0050.00217.29
8.1.130.0030.00517.70
8.1.120.0050.00217.39
8.1.110.0050.00317.30
8.1.100.0040.00417.38
8.1.90.0080.00017.39
8.1.80.0040.00417.39
8.1.70.0030.00317.27
8.1.60.0040.00417.53
8.1.50.0000.00817.45
8.1.40.0040.00417.33
8.1.30.0090.00017.47
8.1.20.0040.00417.48
8.1.10.0030.00617.41
8.1.00.0000.00817.46
8.0.300.0070.00018.77
8.0.290.0000.00816.75
8.0.280.0030.00318.44
8.0.270.0000.00717.16
8.0.260.0030.00317.16
8.0.250.0000.00716.96
8.0.240.0000.00616.91
8.0.230.0000.00716.79
8.0.220.0000.00816.73
8.0.210.0000.00716.78
8.0.200.0040.00416.72
8.0.190.0040.00416.85
8.0.180.0000.00716.85
8.0.170.0040.00416.88
8.0.160.0030.00316.83
8.0.150.0000.00716.77
8.0.140.0040.00416.66
8.0.130.0000.00613.34
8.0.120.0040.00416.86
8.0.110.0030.00516.72
8.0.100.0000.00716.69
8.0.90.0030.00516.74
8.0.80.0170.00316.82
8.0.70.0000.00816.71
8.0.60.0030.00316.84
8.0.50.0040.00416.72
8.0.30.0110.00817.10
8.0.20.0130.00917.40
8.0.10.0040.00416.80
8.0.00.0060.01016.74
7.4.330.0020.00215.08
7.4.320.0000.00616.57
7.4.300.0000.00816.54
7.4.290.0030.00316.54
7.4.280.0060.00316.43
7.4.270.0000.00716.59
7.4.260.0070.00016.51
7.4.250.0040.00416.54
7.4.240.0030.00316.48
7.4.230.0030.00316.24
7.4.220.0090.00916.47
7.4.210.0090.00616.36
7.4.200.0000.00816.62
7.4.160.0140.00716.50
7.4.150.0060.01217.40
7.4.140.0120.00517.86
7.4.130.0070.01016.49
7.4.120.0100.01016.40
7.4.110.0080.00816.54
7.4.100.0030.01416.36
7.4.90.0090.00916.59
7.4.80.0090.01219.39
7.4.70.0060.01216.49
7.4.60.0100.00716.41
7.4.50.0040.00416.29
7.4.40.0120.00416.45
7.4.30.0060.00916.33
7.4.00.0040.01114.79
7.3.330.0030.00312.89
7.3.320.0000.00513.10
7.3.310.0000.00716.02
7.3.300.0030.00316.04
7.3.290.0060.00916.14
7.3.280.0050.01016.12
7.3.270.0030.02117.40
7.3.260.0070.01016.09
7.3.250.0110.00616.34
7.3.240.0130.00316.32
7.3.230.0060.01016.39
7.3.210.0070.01016.43
7.3.200.0140.01019.39
7.3.190.0110.00816.20
7.3.180.0150.00016.38
7.3.170.0100.00816.41
7.3.160.0040.01216.20
7.3.10.0060.00916.72
7.3.00.0030.00916.45
7.2.330.0040.01316.27
7.2.320.0130.00316.57
7.2.310.0120.00616.35
7.2.300.0070.01416.50
7.2.290.0080.00816.33
7.2.130.0040.00716.95
7.2.120.0070.00716.77
7.2.110.0070.00716.67
7.2.100.0060.00316.50
7.2.90.0070.00716.85
7.2.80.0000.01616.73
7.2.70.0030.01016.53
7.2.60.0100.00316.90
7.2.50.0030.01216.96
7.2.40.0030.01016.66
7.2.30.0130.00016.50
7.2.20.0120.00416.96
7.2.10.0090.00016.77
7.2.00.0060.00917.78
7.1.250.0000.01415.75
7.1.100.0040.00718.16
7.1.70.0070.00417.01
7.1.60.0090.01619.61
7.1.50.0030.02016.50
7.1.00.0000.08022.45
7.0.200.0030.00716.43
7.0.140.0000.07721.97
7.0.60.0070.08019.88
7.0.50.0000.04017.79
7.0.40.0130.06020.04
7.0.30.0330.04019.96
7.0.20.0300.06020.19
7.0.10.0070.09020.09
7.0.00.0070.05320.33
5.6.280.0000.07721.06
5.6.210.0000.05720.70
5.6.200.0070.08718.09
5.6.190.0030.05020.45
5.6.180.0300.05720.28
5.6.170.0300.07720.49
5.6.160.0030.04720.51
5.6.150.0070.04718.11
5.6.140.0030.07318.11
5.6.130.0130.08018.17
5.6.120.0100.07721.09
5.6.110.0030.04720.97
5.6.100.0100.03321.07
5.6.90.0070.08321.00
5.6.80.0100.08020.50
5.5.350.4200.04720.33
5.5.340.0100.06717.95
5.5.330.0030.05020.19
5.5.320.0330.07320.17
5.5.310.0270.07720.32
5.5.300.0070.08017.96
5.5.290.0070.04318.01
5.5.280.0100.08320.77
5.5.270.0000.05020.86
5.5.260.0100.07720.81
5.5.250.0130.07020.58
5.5.240.0270.06320.05
5.4.450.3270.04019.21
5.4.440.0030.04019.27
5.4.430.0800.04319.32
5.4.420.2500.03019.40
5.4.410.3770.03319.38
5.4.400.3970.04718.87
5.4.390.4030.03718.87
5.4.380.3800.04018.97
5.4.370.4600.03719.13
5.4.360.4830.04019.09
5.4.350.3800.03319.26
5.4.340.5230.02718.92
5.4.320.4900.03719.00
5.4.310.4630.04018.87
5.4.300.4000.04019.16
5.4.290.3570.04019.15
5.4.280.3900.03719.13
5.4.270.4070.03319.00
5.4.260.4270.03719.15
5.4.250.4430.03019.13
5.4.240.4000.04018.92
5.4.230.4330.02719.15
5.4.220.4800.03318.88
5.4.210.4830.03318.86
5.4.200.4670.04018.99
5.4.190.4730.03718.86
5.4.180.3770.03719.15
5.4.170.3930.04019.19
5.4.160.4700.04319.02
5.4.150.4500.04019.02
5.4.140.4170.03716.39
5.4.130.3900.03316.41
5.4.120.4730.03716.41
5.4.110.4400.03316.48
5.4.100.4330.03716.36
5.4.90.3930.03716.49
5.4.80.5230.04716.33
5.4.70.4570.03716.36
5.4.60.4200.04016.23
5.4.50.3970.04316.30
5.4.40.4130.03316.31
5.4.30.4200.04016.38
5.4.20.2370.03016.38
5.4.10.2670.04016.10
5.4.00.3100.02715.65
5.3.290.4230.04714.50
5.3.280.4170.04314.50
5.3.270.4300.03314.54
5.3.260.4330.03314.48
5.3.250.4530.04014.54
5.3.240.4470.04014.57
5.3.230.4800.04314.57
5.3.220.4670.04014.49
5.3.210.4670.03314.52
5.3.200.4130.03014.38
5.3.190.4830.04714.46
5.3.180.4700.04014.48
5.3.170.4630.03714.49
5.3.160.4270.05014.52
5.3.150.3770.03714.50
5.3.140.3970.04314.37
5.3.130.4200.04014.36
5.3.120.4400.03714.48
5.3.110.3100.03314.63
5.3.100.3270.04013.96
5.3.90.3400.03313.94
5.3.80.3670.03013.85
5.3.70.3330.03313.95
5.3.60.3270.03313.95
5.3.50.3130.03313.91
5.3.40.2570.03713.90
5.3.30.2200.03313.84
5.3.20.2200.03313.71
5.3.10.4170.03013.61
5.3.00.0070.07013.61
5.2.170.3130.03011.13
5.2.160.3070.03011.07
5.2.150.1630.02711.05
5.2.140.1570.02311.11
5.2.130.2400.02711.25
5.2.120.2870.02711.07
5.2.110.1830.03311.05
5.2.100.0000.04011.08
5.2.90.0030.06010.98
5.2.80.1370.03311.09
5.2.70.3370.03011.09
5.2.60.4070.03711.01
5.2.50.4170.02311.09
5.2.40.3430.02710.89
5.2.30.3270.02710.97
5.2.20.3430.03710.81
5.2.10.3370.02310.71
5.2.00.3300.02710.66
5.1.60.3400.0209.94
5.1.50.3330.0239.89
5.1.40.3230.0209.92
5.1.30.3300.02710.29
5.1.20.3070.02310.34
5.1.10.3470.02310.05
5.1.00.3330.02310.07
5.0.50.0000.0238.38
5.0.40.0100.0278.39
5.0.30.0070.0608.30
5.0.20.0030.0438.35
5.0.10.0030.0278.18
5.0.00.0070.0638.14
4.4.90.1600.0175.81
4.4.80.1330.0175.79
4.4.70.1570.0205.83
4.4.60.2000.0175.86
4.4.50.1730.0175.84
4.4.40.2000.0205.82
4.4.30.2000.0135.82
4.4.20.1800.0135.94
4.4.10.1130.0205.93
4.4.00.0070.0535.84
4.3.110.0000.0235.82
4.3.100.0000.0375.69
4.3.90.0000.0275.79
4.3.80.0970.0275.71
4.3.70.1570.0135.78
4.3.60.1570.0175.68
4.3.50.2170.0135.77
4.3.40.1900.0235.75
4.3.30.0800.0174.68
4.3.20.0830.0134.68
4.3.10.0830.0174.68
4.3.00.1070.0174.68

preferences:
45.64 ms | 400 KiB | 5 Q