3v4l.org

run code in 300+ PHP versions simultaneously
<?php //all uppercase letters print(strtoupper("the quick brown fox jumps over the lazy dog.")); //all lowercase letters print(strtolower("THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG")); // make a string's first character uppercase print(ucfirst("the quick brown fox jumps over the lazy dog.")); // make a string's first character of all the words uppercase print(ucwords("the quick brown fox jumps over the lazy dog.")); ?>

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.0120.00316.50
8.3.50.0040.01321.93
8.3.40.0070.00718.90
8.3.30.0120.00619.05
8.3.20.0040.00420.39
8.3.10.0050.00323.51
8.3.00.0100.00019.26
8.2.180.0110.00418.28
8.2.170.0070.00722.96
8.2.160.0030.01020.27
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0030.01026.16
8.2.120.0040.00422.26
8.2.110.0030.00622.16
8.2.100.0000.01117.72
8.2.90.0040.00418.84
8.2.80.0060.00317.97
8.2.70.0060.00317.50
8.2.60.0030.00517.90
8.2.50.0000.00918.07
8.2.40.0050.00318.00
8.2.30.0040.00417.88
8.2.20.0050.00217.55
8.2.10.0040.00418.01
8.2.00.0030.00717.57
8.1.280.0130.00725.92
8.1.270.0000.01023.91
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0030.00723.92
8.1.230.0110.00019.02
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.10
8.1.190.0000.00717.38
8.1.180.0040.00418.10
8.1.170.0000.00818.51
8.1.160.0000.00821.92
8.1.150.0000.00818.56
8.1.140.0040.00417.33
8.1.130.0000.00717.68
8.1.120.0000.00717.19
8.1.110.0060.00617.34
8.1.100.0030.00617.38
8.1.90.0040.00417.30
8.1.80.0040.00417.41
8.1.70.0080.00017.23
8.1.60.0060.00317.45
8.1.50.0080.00017.28
8.1.40.0040.00417.28
8.1.30.0080.00017.47
8.1.20.0080.00017.59
8.1.10.0070.00017.41
8.1.00.0070.00017.45
8.0.300.0030.00418.77
8.0.290.0040.00417.05
8.0.280.0000.00718.23
8.0.270.0000.00817.23
8.0.260.0070.00017.13
8.0.250.0000.00716.88
8.0.240.0070.00016.79
8.0.230.0000.00716.84
8.0.220.0030.00316.74
8.0.210.0040.00416.79
8.0.200.0000.00716.80
8.0.190.0070.00016.80
8.0.180.0030.00616.81
8.0.170.0000.00816.80
8.0.160.0030.00516.64
8.0.150.0040.00416.74
8.0.140.0070.00016.68
8.0.130.0060.00013.28
8.0.120.0030.00516.63
8.0.110.0000.00716.78
8.0.100.0040.00416.62
8.0.90.0040.00416.65
8.0.80.0030.01816.72
8.0.70.0050.00316.74
8.0.60.0000.00816.83
8.0.50.0080.00016.67
8.0.30.0120.01016.99
8.0.20.0120.00617.40
8.0.10.0050.00216.92
8.0.00.0140.00616.83
7.4.330.0050.00015.00
7.4.320.0000.00616.45
7.4.300.0030.00316.37
7.4.290.0030.00316.38
7.4.280.0070.00016.36
7.4.270.0070.00016.45
7.4.260.0040.00416.32
7.4.250.0040.00416.35
7.4.240.0020.00516.36
7.4.230.0000.00716.45
7.4.220.0000.01616.53
7.4.210.0020.01316.46
7.4.200.0030.00316.23
7.4.190.0030.00316.44
7.4.160.0120.00416.22
7.4.150.0070.01017.40
7.4.140.0120.00717.86
7.4.130.0050.01116.46
7.4.120.0090.00816.50
7.4.110.0070.01116.53
7.4.100.0140.00516.45
7.4.90.0070.01116.52
7.4.80.0130.01019.39
7.4.70.0030.01516.29
7.4.60.0090.00916.20
7.4.50.0000.00816.27
7.4.40.0060.00922.77
7.4.30.0100.00616.23
7.4.00.0130.00314.68
7.3.330.0000.00513.14
7.3.320.0060.00012.98
7.3.310.0050.00215.98
7.3.300.0030.00316.04
7.3.290.0060.00916.25
7.3.280.0100.00816.13
7.3.270.0130.00317.40
7.3.260.0060.01216.21
7.3.250.0110.00916.37
7.3.240.0060.01016.13
7.3.230.0150.00316.39
7.3.210.0030.01416.31
7.3.200.0110.00919.39
7.3.190.0100.00716.54
7.3.180.0090.00616.39
7.3.170.0060.01016.45
7.3.160.0100.00716.39
7.3.120.0060.00914.73
7.3.10.0060.00616.60
7.3.00.0070.00416.53
7.2.330.0150.00816.35
7.2.320.0060.01216.16
7.2.310.0110.00816.43
7.2.300.0130.00316.16
7.2.290.0130.00316.47
7.2.130.0050.00816.79
7.2.120.0050.00816.79
7.2.110.0070.00916.70
7.2.100.0040.01116.62
7.2.90.0040.00816.64
7.2.80.0070.00616.69
7.2.70.0060.00716.94
7.2.60.0070.00716.73
7.2.50.0050.00716.86
7.2.40.0080.00716.78
7.2.30.0050.01116.87
7.2.20.0060.00416.64
7.2.10.0080.00716.77
7.2.00.0030.01316.60
7.1.250.0050.00915.78
7.1.70.0000.00816.82
7.1.60.0070.01317.28
7.1.50.0090.00616.86
7.1.00.0070.07322.37
7.0.200.0150.00016.65
7.0.140.0030.07322.18
7.0.60.0170.06020.06
7.0.50.0070.04017.80
7.0.40.0030.04320.27
7.0.30.0570.06720.18
7.0.20.0330.08320.18
7.0.10.0070.09020.00
7.0.00.0070.09020.32
5.6.280.0000.07721.04
5.6.210.0100.06720.62
5.6.200.0070.08718.19
5.6.190.0100.07320.39
5.6.180.0330.07020.35
5.6.170.0300.08320.71
5.6.160.0130.06020.37
5.6.150.0100.07718.19
5.6.140.0070.04718.11
5.6.130.0030.07718.11
5.6.120.0030.05720.98
5.6.110.0070.03720.97
5.6.100.0070.08020.96
5.6.90.0070.04021.09
5.6.80.0100.07720.42
5.6.70.4430.04020.35
5.5.350.0100.04320.34
5.5.340.0070.07317.92
5.5.330.0000.04720.40
5.5.320.0400.07320.32
5.5.310.0330.07020.29
5.5.300.0030.05317.88
5.5.290.0030.09017.88
5.5.280.0030.08020.80
5.5.270.0130.08320.79
5.5.260.0100.08720.83
5.5.250.0100.03320.63
5.5.240.0270.07320.25
5.4.450.0670.06019.47
5.4.440.0870.07319.46
5.4.430.0630.05019.46
5.4.420.0100.05319.11
5.4.410.0770.06019.47
5.4.400.1000.07318.95
5.4.390.0800.06719.19
5.4.380.0300.05318.61
5.4.370.0270.05018.73
5.4.360.0300.05018.72
5.4.350.0230.05318.72
5.4.340.0270.06718.70
5.4.320.0030.04012.45
5.4.310.0060.04012.45
5.4.300.0040.03812.45
5.4.290.0050.04412.43
5.4.280.0090.03712.33
5.4.270.0100.04212.33
5.4.260.0090.04112.33
5.4.250.0080.04112.33
5.4.240.0090.04112.33
5.4.230.0280.06712.32
5.4.220.0210.10012.32
5.4.210.0220.06812.32
5.4.200.0190.08712.32
5.4.190.0210.08712.32
5.4.180.0200.09812.32
5.4.170.0340.13112.33
5.4.160.0060.04112.33
5.4.150.0070.03912.32
5.4.140.0140.04412.00
5.4.130.0120.04112.00
5.4.120.0090.04111.95
5.4.110.0100.06111.95
5.4.100.0070.05511.95
5.4.90.0130.05111.95
5.4.80.0070.07711.95
5.4.70.0190.05811.95
5.4.60.0220.07611.94
5.4.50.0100.04111.95
5.4.40.0080.04611.93
5.4.30.0160.05711.93
5.4.20.0140.05011.93
5.4.10.0070.05811.93
5.4.00.0160.05011.42
5.3.290.0070.03812.80
5.3.280.0130.07212.71
5.3.270.0160.06612.72
5.3.260.0120.06312.72
5.3.250.0140.05912.72
5.3.240.0080.04512.72
5.3.230.0120.07212.71
5.3.220.0130.06212.68
5.3.210.0070.06212.68
5.3.200.0120.06812.68
5.3.190.0080.05912.68
5.3.180.0070.05812.67
5.3.170.0110.03812.66
5.3.160.0130.05012.67
5.3.150.0230.09012.67
5.3.140.0210.10012.66
5.3.130.0090.05812.66
5.3.120.0130.04912.66
5.3.110.0170.05312.66
5.3.100.0150.06212.12
5.3.90.0220.05012.08
5.3.80.0110.04512.08
5.3.70.0100.04812.07
5.3.60.0090.04712.06
5.3.50.0080.04112.00
5.3.40.0120.03412.00
5.3.30.0110.04811.94
5.3.20.0120.04211.72
5.3.10.0130.04511.69
5.3.00.0130.04811.67
5.2.170.0070.0479.17
5.2.160.0100.0459.18
5.2.150.0090.0559.18
5.2.140.0050.0559.18
5.2.130.0150.0519.13
5.2.120.0120.0339.14
5.2.110.0110.0659.14
5.2.100.0080.0379.14
5.2.90.0080.0459.14
5.2.80.0110.0359.13
5.2.70.0080.0419.13
5.2.60.0070.0459.08
5.2.50.0080.0289.05
5.2.40.0090.0259.03
5.2.30.0050.0319.00
5.2.20.0050.0308.99
5.2.10.0060.0288.92
5.2.00.0050.0308.78
5.1.60.0050.0258.06
5.1.50.0070.0228.06
5.1.40.0050.0288.04
5.1.30.0050.0328.39
5.1.20.0060.0378.41
5.1.10.0100.0318.13
5.1.00.0050.0368.13
5.0.50.0030.0256.61
5.0.40.0080.0176.47
5.0.30.0060.0336.29
5.0.20.0040.0196.25
5.0.10.0030.0206.23
5.0.00.0030.0316.22
4.4.90.0030.0214.78
4.4.80.0030.0174.75
4.4.70.0040.0154.75
4.4.60.0100.0134.75
4.4.50.0030.0234.77
4.4.40.0020.0304.71
4.4.30.0030.0224.76
4.4.20.0030.0204.84
4.4.10.0040.0164.85
4.4.00.0020.0284.75
4.3.110.0050.0214.67
4.3.100.0030.0214.66
4.3.90.0030.0164.63
4.3.80.0030.0254.59
4.3.70.0030.0204.63
4.3.60.0020.0224.63
4.3.50.0050.0214.62
4.3.40.0040.0264.54
4.3.30.0050.0193.28
4.3.20.0000.0193.26
4.3.10.0020.0153.22
4.3.00.0170.02010.31

preferences:
44.2 ms | 401 KiB | 5 Q