3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sentence = 'y HeloWerld'; $werds = preg_split('/(?=[A-Z])/',$sentence); var_dump(preg_replace('/\s+/','',ucwords(implode(' ',$werds))));

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.70.0140.00416.63
8.3.60.0110.01116.71
8.3.50.0120.00722.11
8.3.40.0110.01118.85
8.3.30.0120.00918.59
8.3.20.0050.00320.38
8.3.10.0080.00023.48
8.3.00.0040.00423.48
8.2.180.0150.00316.88
8.2.170.0040.01122.96
8.2.160.0110.00322.24
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0050.00321.05
8.2.120.0050.00226.35
8.2.110.0180.00420.39
8.2.100.0080.00818.03
8.2.90.0040.00419.22
8.2.80.0030.00617.97
8.2.70.0000.00917.63
8.2.60.0000.00917.91
8.2.50.0050.00318.09
8.2.40.0000.00820.60
8.2.30.0000.00719.25
8.2.20.0040.00417.84
8.2.10.0060.00318.06
8.2.00.0050.00218.00
8.1.280.0040.01125.92
8.1.270.0040.00422.20
8.1.260.0090.00028.09
8.1.250.0000.00728.09
8.1.240.0100.00023.78
8.1.230.0040.00720.81
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.38
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0000.00918.69
8.1.160.0050.00220.64
8.1.150.0000.00718.75
8.1.140.0040.00419.44
8.1.130.0000.00717.57
8.1.120.0070.00017.46
8.1.110.0040.00417.52
8.1.100.0020.00517.52
8.1.90.0000.00817.43
8.1.80.0040.00417.58
8.1.70.0040.00417.49
8.1.60.0060.00317.63
8.1.50.0090.00017.48
8.1.40.0070.00317.61
8.1.30.0030.00517.67
8.1.20.0030.00617.63
8.1.10.0040.00417.64
8.1.00.0000.00817.40
8.0.300.0000.00818.77
8.0.290.0030.00516.63
8.0.280.0000.00718.46
8.0.270.0030.00317.26
8.0.260.0030.00317.21
8.0.250.0060.00317.14
8.0.240.0030.00317.11
8.0.230.0040.00417.00
8.0.220.0040.00416.91
8.0.210.0030.00517.07
8.0.200.0030.00317.05
8.0.190.0040.00416.97
8.0.180.0000.00717.09
8.0.170.0000.00817.07
8.0.160.0070.00016.93
8.0.150.0000.00717.00
8.0.140.0040.00416.95
8.0.130.0060.00013.43
8.0.120.0020.00516.99
8.0.110.0030.00516.86
8.0.100.0030.00516.89
8.0.90.0050.00316.86
8.0.80.0150.00317.09
8.0.70.0040.00416.92
8.0.60.0050.00216.93
8.0.50.0040.00417.02
8.0.30.0070.01217.25
8.0.20.0090.01217.40
8.0.10.0030.00516.92
8.0.00.0110.01016.78
7.4.330.0050.00016.73
7.4.320.0030.00316.75
7.4.300.0030.00316.64
7.4.290.0040.00416.71
7.4.280.0030.00616.74
7.4.270.0070.00016.63
7.4.260.0030.00716.63
7.4.250.0040.00416.66
7.4.240.0040.00416.72
7.4.230.0000.00716.52
7.4.220.0130.00316.64
7.4.210.0130.00316.73
7.4.200.0070.00016.61
7.4.160.0000.01516.75
7.4.150.0070.01117.40
7.4.140.0100.00817.86
7.4.130.0090.00916.72
7.4.120.0090.00916.61
7.4.110.0120.00916.63
7.4.100.0070.01416.66
7.4.90.0110.00616.36
7.4.80.0080.00819.39
7.4.70.0030.01316.57
7.4.60.0120.00616.50
7.4.50.0060.01216.38
7.4.40.0140.00716.44
7.4.30.0100.00716.56
7.4.00.0130.00015.06
7.3.330.0050.00213.18
7.3.320.0050.00013.22
7.3.310.0040.00416.18
7.3.300.0000.00716.19
7.3.290.0000.00716.35
7.3.280.0120.00516.37
7.3.270.0120.00617.40
7.3.260.0070.01116.63
7.3.250.0150.00416.47
7.3.240.0120.00516.61
7.3.230.0130.00916.60
7.3.210.0090.01216.25
7.3.200.0120.00919.39
7.3.190.0080.00816.30
7.3.180.0100.00616.64
7.3.170.0070.01016.30
7.3.160.0090.00916.38
7.2.330.0140.00316.59
7.2.320.0070.01016.70
7.2.310.0000.02116.62
7.2.300.0060.01116.75
7.2.290.0170.00016.76
7.2.110.0100.01016.74
7.2.60.0030.00616.77
7.2.00.0040.01119.60
7.1.200.0030.01015.86
7.1.100.0040.00718.54
7.1.70.0030.00917.13
7.1.60.0100.01319.40
7.1.50.0060.01617.13
7.1.00.0070.07322.37
7.0.200.0000.00816.95
7.0.60.0200.07321.87
7.0.50.0070.04317.79
7.0.40.0000.09320.26
7.0.30.0270.08320.32
7.0.20.0370.07320.11
7.0.10.0070.08020.19
7.0.00.0130.04320.18
5.6.280.0000.06321.14
5.6.210.0030.07020.66
5.6.200.0030.07718.23
5.6.190.0130.07720.53
5.6.180.0300.07320.57
5.6.170.0370.07320.38
5.6.160.0130.07320.41
5.6.150.0130.05718.18
5.6.140.0030.08318.22
5.6.130.0100.04018.14
5.6.120.0070.06721.09
5.6.110.0030.04321.12
5.6.100.0070.09020.93
5.6.90.0100.05320.99
5.6.80.0070.08020.50
5.5.350.0270.06020.40
5.5.340.0030.04317.88
5.5.330.0170.06020.36
5.5.320.0570.07320.20
5.5.310.0270.06720.12
5.5.300.0170.07317.89
5.5.290.0070.04017.98
5.5.280.0070.03720.80
5.5.270.0100.08320.79
5.5.260.0130.08020.72
5.5.250.0030.04020.57
5.5.240.0200.07020.36

preferences:
44.12 ms | 401 KiB | 5 Q