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.0100.01016.75
8.3.50.0070.01021.95
8.3.40.0090.01218.67
8.3.30.0070.00718.92
8.3.20.0040.00420.29
8.3.10.0040.00420.26
8.3.00.0040.00419.13
8.2.180.0120.00316.38
8.2.170.0090.00622.96
8.2.160.0110.00320.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0110.00018.04
8.2.110.0100.00020.35
8.2.100.0000.01118.22
8.2.90.0070.00319.28
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0030.00718.00
8.2.30.0000.00819.30
8.2.20.0050.00317.64
8.2.10.0040.00417.89
8.2.00.0080.00017.48
8.1.280.0040.01125.92
8.1.270.0030.00623.83
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.75
8.1.230.0110.00019.04
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.00
8.1.190.0030.00516.88
8.1.180.0060.00318.10
8.1.170.0050.00518.52
8.1.160.0000.00721.86
8.1.150.0000.00818.86
8.1.140.0050.00217.44
8.1.130.0030.00317.82
8.1.120.0040.00417.30
8.1.110.0000.00817.28
8.1.100.0070.00017.29
8.1.90.0000.00817.27
8.1.80.0030.00317.23
8.1.70.0000.00717.30
8.1.60.0030.00617.52
8.1.50.0060.00317.34
8.1.40.0040.00417.34
8.1.30.0040.00417.60
8.1.20.0040.00417.55
8.1.10.0020.00517.38
8.1.00.0050.00217.30
8.0.300.0030.00618.77
8.0.290.0040.00416.75
8.0.280.0000.00718.31
8.0.270.0070.00017.28
8.0.260.0060.00017.25
8.0.250.0070.00016.86
8.0.240.0000.00716.84
8.0.230.0000.00716.95
8.0.220.0060.00016.75
8.0.210.0040.00416.71
8.0.200.0030.00316.93
8.0.190.0000.00716.87
8.0.180.0070.00016.88
8.0.170.0040.00416.73
8.0.160.0080.00016.83
8.0.150.0030.00316.65
8.0.140.0040.00416.78
8.0.130.0080.00013.34
8.0.120.0050.00316.69
8.0.110.0000.00816.75
8.0.100.0040.00416.64
8.0.90.0040.00416.89
8.0.80.0110.01116.80
8.0.70.0030.00516.76
8.0.60.0000.00816.65
8.0.50.0000.00816.70
8.0.30.0080.01117.00
8.0.20.0080.01217.40
8.0.10.0000.00817.01
8.0.00.0110.00916.66
7.4.330.0050.00015.14
7.4.320.0060.00016.56
7.4.300.0080.00016.51
7.4.290.0040.00416.53
7.4.280.0090.00016.44
7.4.270.0000.00716.37
7.4.260.0000.00716.31
7.4.250.0040.00416.39
7.4.240.0040.00316.39
7.4.230.0030.00316.63
7.4.220.0100.00716.63
7.4.210.0110.00416.60
7.4.200.0030.00316.40
7.4.160.0160.00016.60
7.4.150.0120.00617.40
7.4.140.0100.00917.86
7.4.130.0090.01116.35
7.4.120.0120.00716.39
7.4.110.0060.00916.23
7.4.100.0070.01016.43
7.4.90.0090.00916.49
7.4.80.0170.00719.39
7.4.70.0100.00616.52
7.4.60.0140.01016.49
7.4.50.0000.00816.25
7.4.40.0080.00816.64
7.4.30.0060.01216.60
7.4.00.0030.01214.74
7.3.330.0030.00312.87
7.3.320.0030.00313.07
7.3.310.0030.00315.98
7.3.300.0030.00316.12
7.3.290.0100.01016.13
7.3.280.0080.00916.11
7.3.270.0030.01617.40
7.3.260.0080.00816.33
7.3.250.0090.00816.33
7.3.240.0120.00416.39
7.3.230.0090.00916.39
7.3.210.0080.01416.02
7.3.200.0030.01519.39
7.3.190.0100.00716.18
7.3.180.0060.01016.50
7.3.170.0110.00716.27
7.3.160.0070.00716.54
7.2.330.0100.00716.45
7.2.320.0140.00316.27
7.2.310.0100.00716.56
7.2.300.0130.01016.37
7.2.290.0070.01016.32
7.2.00.0000.01219.20
7.1.200.0040.00415.77
7.1.100.0040.01118.09
7.1.70.0000.01117.19
7.1.60.0090.01519.61
7.1.50.0100.00616.84
7.1.00.0030.07722.44
7.0.200.0030.00716.54
7.0.140.0070.06321.98
7.0.60.0030.08319.77
7.0.50.0000.04717.87
7.0.40.0170.07720.09
7.0.30.0570.06320.02
7.0.20.0300.07320.17
7.0.10.0230.04720.17
7.0.00.0070.08320.04
5.6.280.0030.07320.86
5.6.210.0070.07020.52
5.6.200.0000.05318.20
5.6.190.0000.05020.67
5.6.180.4200.04020.57
5.6.170.0270.05020.49
5.6.160.0030.04320.33
5.6.150.0100.08318.08
5.6.140.0100.03718.20
5.6.130.0070.08018.21
5.6.120.0070.09021.13
5.6.110.0030.08720.88
5.6.100.0070.06020.97
5.6.90.0130.07721.01
5.6.80.0070.04020.39
5.5.350.0200.08020.35
5.5.340.0030.04317.98
5.5.330.0100.03320.23
5.5.320.0400.07020.24
5.5.310.0300.05020.41
5.5.300.0070.03718.00
5.5.290.0030.06318.02
5.5.280.0030.04020.79
5.5.270.0070.08320.86
5.5.260.0100.07320.95
5.5.250.0070.06320.61
5.5.240.0170.07320.25
5.4.450.0500.04319.48
5.4.440.0430.07019.31
5.4.430.0730.06719.50
5.4.420.0100.05719.44
5.4.410.0670.06319.42
5.4.400.0700.05719.12
5.4.390.0830.05318.82
5.4.380.0400.05718.49
5.4.370.0170.05018.62
5.4.360.0230.06018.56
5.4.350.0330.05018.61
5.4.340.0170.07018.73
5.4.320.0060.03612.45
5.4.310.0060.03812.45
5.4.300.0050.03712.45
5.4.290.0110.03212.45
5.4.280.0100.03112.34
5.4.270.0060.03512.35
5.4.260.0100.03312.34
5.4.250.0050.03812.34
5.4.240.0040.03612.34
5.4.230.0080.03512.34
5.4.220.0030.03912.34
5.4.210.0060.03512.34
5.4.200.0060.03712.34
5.4.190.0070.03412.33
5.4.180.0040.03712.34
5.4.170.0040.03812.35
5.4.160.0060.03612.34
5.4.150.0100.03212.34
5.4.140.0070.03612.02
5.4.130.0050.04012.01
5.4.120.0060.03511.97
5.4.110.0060.03511.96
5.4.100.0080.04011.96
5.4.90.0060.03711.96
5.4.80.0070.03711.96
5.4.70.0060.03411.96
5.4.60.0080.03211.96
5.4.50.0060.03511.96
5.4.40.0070.03611.95
5.4.30.0070.04111.95
5.4.20.0030.03711.95
5.4.10.0030.03811.95
5.4.00.0080.03911.43
5.3.290.0060.04612.80
5.3.280.0060.03812.71
5.3.270.0050.03912.73
5.3.260.0090.03512.72
5.3.250.0080.03412.71
5.3.240.0080.03512.72
5.3.230.0070.03712.71
5.3.220.0090.03412.68
5.3.210.0080.03712.68
5.3.200.0050.03712.68
5.3.190.0060.03812.68
5.3.180.0090.03412.67
5.3.170.0050.03712.67
5.3.160.0080.03412.67
5.3.150.0110.03312.67
5.3.140.0090.03912.66
5.3.130.0060.03812.65
5.3.120.0100.03412.66
5.3.110.0080.03612.66
5.3.100.0160.02712.12
5.3.90.0100.03312.08
5.3.80.0070.03512.07
5.3.70.0100.03212.07
5.3.60.0070.03512.06
5.3.50.0080.03512.00
5.3.40.0070.03712.00
5.3.30.0090.03111.94
5.3.20.0080.03411.72
5.3.10.0060.03411.69
5.3.00.0060.03611.68
5.2.170.0030.0329.18
5.2.160.0060.0289.18
5.2.150.0050.0309.18
5.2.140.0060.0299.18
5.2.130.0050.0289.14
5.2.120.0050.0279.14
5.2.110.0040.0319.14
5.2.100.0060.0279.14
5.2.90.0060.0279.14
5.2.80.0040.0309.14
5.2.70.0060.0289.14
5.2.60.0060.0299.09
5.2.50.0020.0329.05
5.2.40.0020.0329.04
5.2.30.0060.0299.01
5.2.20.0040.0309.00
5.2.10.0050.0288.92
5.2.00.0040.0308.78
5.1.60.0060.0278.06
5.1.50.0040.0248.06
5.1.40.0030.0258.04
5.1.30.0060.0248.39
5.1.20.0040.0378.41
5.1.10.0050.0248.14
5.1.00.0040.0258.13
5.0.50.0040.0246.61
5.0.40.0040.0196.48
5.0.30.0050.0296.29
5.0.20.0030.0196.25
5.0.10.0020.0216.24
5.0.00.0040.0306.23
4.4.90.0040.0144.78
4.4.80.0020.0164.76
4.4.70.0000.0184.76
4.4.60.0020.0164.75
4.4.50.0010.0174.77
4.4.40.0030.0284.71
4.4.30.0040.0164.76
4.4.20.0040.0154.84
4.4.10.0040.0204.85
4.4.00.0040.0264.76
4.3.110.0020.0164.67
4.3.100.0050.0144.66
4.3.90.0040.0154.63
4.3.80.0040.0234.59
4.3.70.0040.0144.63
4.3.60.0030.0144.63
4.3.50.0030.0154.63
4.3.40.0040.0234.54
4.3.30.0020.0163.28
4.3.20.0040.0143.26
4.3.10.0010.0163.21
4.3.00.0100.0206.95

preferences:
36.6 ms | 401 KiB | 5 Q