3v4l.org

run code in 300+ PHP versions simultaneously
<?php function toUpperCamelCase($text) { $replacement = ""; $text = delete_all_between('(', ')', $text); $text = preg_replace("/(\b(de|du|la|le|et)\b)|(\b((l|d)[',’]))/i", ' ', $text); $text = iconv('UTF-8//IGNORE', 'ASCII//IGNORE', $text); $text = ucwords($text); $text = preg_replace('~[^\pL\d]+~u', $replacement, $text); $text = trim($text, $replacement); $text = preg_replace('~-+~', $replacement, $text); return $text; } function delete_all_between($beginning, $end, $string) { $beginningPos = strpos($string, $beginning); $endPos = strpos($string, $end); if ($beginningPos === false || $endPos === false) { return $string; } $textToDelete = substr($string, $beginningPos, ($endPos + strlen($end)) - $beginningPos); return str_replace($textToDelete, '', $string); } echo toUpperCamelCase("Identifiant de l’organisme destinataire de la déclaration néant");

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.0000.01616.63
8.3.50.0070.01416.77
8.3.40.0070.00719.01
8.3.30.0040.01118.86
8.3.20.0000.00720.27
8.3.10.0000.00821.85
8.3.00.0030.00519.34
8.2.180.0080.00818.41
8.2.170.0140.00422.96
8.2.160.0070.00720.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00321.07
8.2.120.0040.00426.35
8.2.110.0000.01020.47
8.2.100.0060.00618.03
8.2.90.0000.00819.38
8.2.80.0000.00818.04
8.2.70.0060.00318.00
8.2.60.0040.00417.93
8.2.50.0030.00618.10
8.2.40.0000.00820.43
8.2.30.0050.00321.14
8.2.20.0040.00418.06
8.2.10.0050.00318.27
8.2.00.0040.00418.32
8.1.280.0100.01025.92
8.1.270.0000.00722.14
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00723.75
8.1.230.0090.00317.72
8.1.220.0030.00617.91
8.1.210.0080.00018.77
8.1.200.0030.00617.50
8.1.190.0060.00317.60
8.1.180.0040.00418.10
8.1.170.0000.00819.15
8.1.160.0000.00719.07
8.1.150.0040.00420.68
8.1.140.0040.00819.65
8.1.130.0030.00519.08
8.1.120.0040.00417.66
8.1.110.0050.00517.59
8.1.100.0080.00017.64
8.1.90.0000.00817.59
8.1.80.0040.00417.69
8.1.70.0080.00017.54
8.1.60.0040.00417.81
8.1.50.0050.00317.57
8.1.40.0000.00817.59
8.1.30.0030.00617.75
8.1.20.0000.00817.82
8.1.10.0030.00517.61
8.1.00.0040.00417.64
8.0.300.0050.00218.77
8.0.290.0040.00416.88
8.0.280.0030.00318.56
8.0.270.0030.00517.21
8.0.260.0070.00016.96
8.0.250.0050.00217.21
8.0.240.0040.00417.22
8.0.230.0040.00417.19
8.0.220.0030.00317.13
8.0.210.0000.00717.14
8.0.200.0040.00417.20
8.0.190.0000.00817.27
8.0.180.0040.00417.21
8.0.170.0000.00817.09
8.0.160.0040.00417.10
8.0.150.0020.00517.02
8.0.140.0040.00416.99
8.0.130.0000.00513.54
8.0.120.0030.00617.30
8.0.110.0000.00817.28
8.0.100.0000.00917.41
8.0.90.0030.00617.39
8.0.80.0040.01517.23
8.0.70.0090.00017.13
8.0.60.0040.00417.25
8.0.50.0040.00417.17
8.0.30.0090.01117.46
8.0.20.0110.01117.59
8.0.10.0030.00717.39
8.0.00.0030.01917.18
7.4.330.0030.00315.55
7.4.320.0000.00716.81
7.4.300.0030.00316.73
7.4.290.0040.00416.80
7.4.280.0040.00816.72
7.4.270.0030.00516.82
7.4.260.0040.00416.79
7.4.250.0030.00516.78
7.4.240.0030.00617.08
7.4.230.0040.00417.06
7.4.220.0060.01516.95
7.4.210.0100.01017.06
7.4.200.0050.00517.16
7.4.160.0140.00516.88
7.4.150.0030.01817.40
7.4.140.0090.01217.86
7.4.130.0060.01416.97
7.4.120.0120.01117.06
7.4.110.0120.00616.91
7.4.100.0140.01317.02
7.4.90.0090.00916.88
7.4.80.0140.00719.39
7.4.70.0150.00816.92
7.4.60.0130.01116.65
7.4.50.0110.00916.67
7.4.40.0140.00616.87
7.4.30.0030.01416.95
7.4.20.0040.01516.67
7.4.10.0070.01116.77
7.4.00.0060.01215.86
7.3.330.0020.00213.38
7.3.320.0000.00513.40
7.3.310.0030.00616.51
7.3.300.0050.00316.69
7.3.290.0000.00816.76
7.3.280.0080.01016.65
7.3.270.0060.01417.40
7.3.260.0130.00716.81
7.3.250.0120.00916.64
7.3.240.0090.01516.79
7.3.230.0100.01016.88
7.3.210.0120.00916.92
7.3.200.0130.00616.86
7.3.190.0030.01516.73
7.3.180.0040.01816.68
7.3.170.0090.01216.74
7.3.160.0120.00616.82
7.3.150.0140.00716.82
7.3.140.0120.00616.75
7.3.130.0090.00916.84
7.3.120.0060.01415.85
7.3.110.0080.01415.65
7.3.100.0080.01115.98
7.3.90.0120.00915.87
7.3.80.0050.01415.87
7.3.70.0070.00715.99
7.3.60.0040.01415.98
7.3.50.0050.01316.07
7.3.40.0060.01016.07
7.3.30.0060.00816.04
7.3.20.0050.01517.01
7.3.10.0060.01116.93
7.3.00.0040.01116.80
7.2.330.0070.01816.89
7.2.320.0110.01016.97
7.2.310.0080.01216.84
7.2.300.0080.01116.78
7.2.290.0090.01217.03
7.2.280.0060.01216.53
7.2.270.0040.01716.55
7.2.260.0060.01216.52
7.2.250.0110.01116.29
7.2.240.0110.01115.87
7.2.230.0080.01215.99
7.2.220.0090.00916.07
7.2.210.0130.00716.13
7.2.200.0060.01016.17
7.2.190.0050.01316.17
7.2.180.0080.01016.15
7.2.170.0070.01216.17
7.2.160.0090.00917.01
7.2.150.0000.01816.77
7.2.140.0090.01217.08
7.2.130.0140.00816.83
7.2.120.0190.01016.64
7.2.110.0070.01116.79
7.2.100.0080.01316.69
7.2.90.0090.01316.66
7.2.80.0060.01516.61
7.2.70.0110.01116.71
7.2.60.0080.01116.86
7.2.50.0060.01816.77
7.2.40.0090.01616.71
7.2.30.0140.00516.97
7.2.20.0030.01516.69
7.2.10.0110.00816.54
7.2.00.0030.01818.12
7.1.330.0120.00615.89
7.1.320.0060.01116.03
7.1.310.0060.00915.92
7.1.300.0130.00516.02
7.1.290.0120.00516.02
7.1.280.0030.01415.91
7.1.270.0080.01016.00
7.1.260.0090.00715.77
7.1.250.0060.00915.72
7.1.240.0360.00715.44
7.1.230.0070.01015.70
7.1.220.0040.01315.71
7.1.210.0160.00615.82
7.1.200.0060.01115.85
7.1.190.0140.00415.65
7.1.180.0090.01115.53
7.1.170.0040.01415.63
7.1.160.0070.01715.57
7.1.150.0260.00715.59
7.1.140.0030.01915.70
7.1.130.0060.01615.78
7.1.120.0060.01515.78
7.1.110.0130.00315.76
7.1.100.0040.01217.13
7.1.90.0130.01015.82
7.1.80.0100.01015.84
7.1.70.0070.01316.60
7.1.60.0140.01425.44
7.1.50.0230.01525.21
7.1.40.0190.00925.22
7.1.30.0190.00825.09
7.1.20.0160.01125.11
7.1.10.0050.01316.40
7.1.00.0080.00916.56
7.0.330.0090.00915.06
7.0.320.0070.01015.49
7.0.310.0070.01015.41
7.0.300.0070.01015.65
7.0.290.0130.01015.36
7.0.280.0070.01015.13
7.0.270.0100.01115.53
7.0.260.0100.00715.52
7.0.250.0090.01315.36
7.0.240.0120.01215.68
7.0.230.0140.00315.37
7.0.220.0100.01015.29
7.0.210.0080.01315.39
7.0.200.0120.00816.46
7.0.190.0100.01216.30
7.0.180.0090.00916.13
7.0.170.0090.00816.07
7.0.160.0060.01416.04
7.0.150.0050.01316.05
7.0.140.0090.00716.00
7.0.130.0130.00416.32
7.0.120.0090.00816.07
7.0.110.0060.01116.13
7.0.100.0090.00816.02
7.0.90.0100.00916.21
7.0.80.0090.00916.18
7.0.70.0070.01216.03
7.0.60.0050.01115.97
7.0.50.0060.01116.09
7.0.40.0090.00816.10
7.0.30.0120.00916.02
7.0.20.0110.00616.13
7.0.10.0050.01216.08
7.0.00.0050.01216.19
5.6.400.0100.01016.02
5.6.390.0120.00616.45
5.6.380.0120.00615.81
5.6.370.0140.00616.26
5.6.360.0070.01115.88
5.6.350.0030.02316.23
5.6.340.0120.00616.32
5.6.330.0100.01416.35
5.6.320.0100.01016.24
5.6.310.0160.00416.30
5.6.300.0060.02216.04
5.6.290.0030.01615.84
5.6.280.0070.01415.75
5.6.270.0070.01315.83
5.6.260.0040.01516.22
5.6.250.0060.01315.85
5.6.240.0080.01216.03
5.6.230.0080.01116.23
5.6.220.0070.01316.26
5.6.210.0130.00716.16
5.6.200.0130.00616.07
5.6.190.0030.01615.98
5.6.180.0070.01116.05
5.6.170.0070.01116.34
5.6.160.0120.00816.11
5.6.150.0070.01416.27
5.6.140.0070.01316.38
5.6.130.0090.00916.18
5.6.120.0030.01916.16
5.6.110.0000.01916.16
5.6.100.0070.01316.25
5.6.90.0090.01216.24
5.6.80.0060.01315.79
5.6.70.0100.00916.02
5.6.60.0090.00915.76
5.6.50.0040.01515.78
5.6.40.0030.01715.98
5.6.30.0080.01215.82
5.6.20.0130.00716.21
5.6.10.0100.01016.18
5.6.00.0030.01616.23

preferences:
51.2 ms | 401 KiB | 5 Q