3v4l.org

run code in 300+ PHP versions simultaneously
<?php function toUpperCamelCase($text) { $replacement = ""; $text = delete_all_between('(', ')', $text); $text = iconv('UTF-8', 'ASCII//IGNORE', $text); $text = preg_replace("/(\b(de|du|la|le|et)\b)|(\b((l|d)[',’]))/i", ' ', $text); var_dump($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.0110.00416.63
8.3.50.0060.00916.55
8.3.40.0120.00319.04
8.3.30.0070.00718.75
8.3.20.0000.00820.43
8.3.10.0040.00421.87
8.3.00.0040.00419.50
8.2.180.0070.00718.41
8.2.170.0090.00922.96
8.2.160.0030.01020.21
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00521.25
8.2.120.0000.00826.35
8.2.110.0040.00422.01
8.2.100.0070.00418.09
8.2.90.0030.00519.46
8.2.80.0000.00817.97
8.2.70.0030.00517.75
8.2.60.0050.00518.05
8.2.50.0000.00918.18
8.2.40.0050.00320.61
8.2.30.0080.00021.05
8.2.20.0000.00818.08
8.2.10.0030.00618.32
8.2.00.0040.00418.32
8.1.280.0120.00625.92
8.1.270.0080.00022.23
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.80
8.1.230.0070.00417.89
8.1.220.0000.00917.91
8.1.210.0030.00518.77
8.1.200.0030.00617.73
8.1.190.0040.00417.60
8.1.180.0040.00418.10
8.1.170.0060.00319.11
8.1.160.0040.00419.16
8.1.150.0030.00620.78
8.1.140.0070.00419.72
8.1.130.0040.00418.94
8.1.120.0040.00417.66
8.1.110.0030.00617.57
8.1.100.0050.00317.68
8.1.90.0090.00017.57
8.1.80.0000.00717.65
8.1.70.0050.00317.62
8.1.60.0030.00617.67
8.1.50.0000.01017.69
8.1.40.0060.00317.58
8.1.30.0040.00417.68
8.1.20.0040.00417.79
8.1.10.0000.00817.62
8.1.00.0040.00417.55
8.0.300.0050.00318.77
8.0.290.0030.00617.00
8.0.280.0030.00318.51
8.0.270.0040.00417.34
8.0.260.0000.00716.96
8.0.250.0000.00717.23
8.0.240.0040.00417.24
8.0.230.0000.00717.21
8.0.220.0070.00017.19
8.0.210.0000.00717.15
8.0.200.0070.00017.13
8.0.190.0000.00817.20
8.0.180.0060.00317.09
8.0.170.0030.00317.07
8.0.160.0040.00417.21
8.0.150.0080.00017.05
8.0.140.0050.00217.13
8.0.130.0000.00513.32
8.0.120.0030.00617.32
8.0.110.0060.00317.39
8.0.100.0070.00317.30
8.0.90.0070.00317.22
8.0.80.0100.01017.27
8.0.70.0040.00417.24
8.0.60.0090.00017.33
8.0.50.0030.00617.36
8.0.30.0080.01117.40
8.0.20.0110.01017.60
8.0.10.0030.00617.47
8.0.00.0100.01717.05
7.4.330.0030.00315.55
7.4.320.0060.00016.93
7.4.300.0030.00316.92
7.4.290.0030.00316.93
7.4.280.0110.00316.83
7.4.270.0070.00016.70
7.4.260.0100.00016.93
7.4.250.0000.00917.05
7.4.240.0040.00417.00
7.4.230.0030.00616.78
7.4.220.0120.00917.09
7.4.210.0090.00817.07
7.4.200.0030.00617.04
7.4.160.0100.01216.95
7.4.150.0080.01217.40
7.4.140.0140.00817.86
7.4.130.0090.01716.78
7.4.120.0070.01716.94
7.4.110.0110.00716.90
7.4.100.0100.01016.92
7.4.90.0080.01116.78
7.4.80.0090.00919.39
7.4.70.0060.01216.86
7.4.60.0090.01116.87
7.4.50.0110.00816.67
7.4.40.0080.01116.77
7.4.30.0120.00616.68
7.4.20.0060.01216.71
7.4.10.0100.00716.97
7.4.00.0070.01116.21
7.3.330.0060.00013.19
7.3.320.0000.00513.44
7.3.310.0050.00316.74
7.3.300.0000.00816.57
7.3.290.0060.00316.58
7.3.280.0090.00916.66
7.3.270.0070.01417.40
7.3.260.0150.00516.91
7.3.250.0100.01016.70
7.3.240.0090.01416.79
7.3.230.0080.01116.83
7.3.210.0160.00316.71
7.3.200.0210.00416.79
7.3.190.0080.01016.65
7.3.180.0120.00716.70
7.3.170.0020.01716.72
7.3.160.0100.00816.85
7.3.150.0150.00316.89
7.3.140.0040.01416.49
7.3.130.0070.01016.83
7.3.120.0140.00316.39
7.3.110.0100.01016.69
7.3.100.0110.00716.50
7.3.90.0000.01816.74
7.3.80.0030.01416.66
7.3.70.0090.00916.99
7.3.60.0000.01716.88
7.3.50.0040.01316.86
7.3.40.0070.01116.63
7.3.30.0080.00916.83
7.3.20.0040.01416.74
7.3.10.0080.01017.01
7.3.00.0090.00916.78
7.2.330.0030.01616.99
7.2.320.0120.00817.07
7.2.310.0090.00916.82
7.2.300.0030.01516.98
7.2.290.0140.00516.90
7.2.280.0070.01016.64
7.2.270.0080.01116.61
7.2.260.0100.01016.69
7.2.250.0070.01016.91
7.2.240.0060.01316.77
7.2.230.0090.00916.87
7.2.220.0090.00916.93
7.2.210.0090.00916.92
7.2.200.0130.00516.91
7.2.190.0110.00717.03
7.2.180.0110.00716.98
7.2.170.0110.01116.89
7.2.160.0060.01216.93
7.2.150.0120.00917.05
7.2.140.0120.00617.05
7.2.130.0090.00917.05
7.2.120.0090.01016.89
7.2.110.0060.01317.00
7.2.100.0050.01316.81
7.2.90.0070.01017.04
7.2.80.0080.01117.00
7.2.70.0060.00917.01
7.2.60.0080.00817.09
7.2.50.0040.01517.03
7.2.40.0050.01117.08
7.2.30.0100.00717.00
7.2.20.0070.01017.07
7.2.10.0060.01117.04
7.2.00.0050.01417.87
7.1.330.0100.01016.00
7.1.320.0080.00815.97
7.1.310.0070.01016.09
7.1.300.0070.01116.01
7.1.290.0070.01016.04
7.1.280.0060.01215.97
7.1.270.0080.00816.18
7.1.260.0080.00815.80
7.1.250.0060.00915.94
7.1.240.0250.00915.77
7.1.230.0060.01715.91
7.1.220.0070.01015.64
7.1.210.0070.01015.64
7.1.200.0100.00815.91
7.1.190.0090.00915.46
7.1.180.0100.00715.83
7.1.170.0070.01015.67
7.1.160.0110.00715.68
7.1.150.0150.00615.67
7.1.140.0110.00715.80
7.1.130.0050.01115.80
7.1.120.0090.00915.64
7.1.110.0030.01416.05
7.1.100.0050.01117.17
7.1.90.0070.01015.79
7.1.80.0090.00915.88
7.1.70.0120.00716.75
7.1.60.0190.01225.47
7.1.50.0190.01525.22
7.1.40.0190.01625.10
7.1.30.0160.01225.13
7.1.20.0160.01025.21
7.1.10.0080.01316.29
7.1.00.0160.00416.42
7.0.330.0090.01315.41
7.0.320.0100.00715.23
7.0.310.0080.00815.41
7.0.300.0090.00915.33
7.0.290.0030.01415.48
7.0.280.0130.00315.38
7.0.270.0070.01115.54
7.0.260.0070.01015.61
7.0.250.0030.01315.57
7.0.240.0060.01115.71
7.0.230.0100.00715.27
7.0.220.0130.00315.44
7.0.210.0060.01215.40
7.0.200.0050.01516.38
7.0.190.0060.01216.36
7.0.180.0120.00716.06
7.0.170.0050.01316.03
7.0.160.0080.01216.08
7.0.150.0100.00816.16
7.0.140.0070.01316.03
7.0.130.0120.00616.25
7.0.120.0040.01516.21
7.0.110.0120.00616.19
7.0.100.0060.01115.97
7.0.90.0050.01216.05
7.0.80.0080.01216.20
7.0.70.0060.01016.08
7.0.60.0090.00815.90
7.0.50.0070.01316.24
7.0.40.0080.01216.17
7.0.30.0110.00916.00
7.0.20.0080.01116.16
7.0.10.0090.00816.16
7.0.00.0090.00816.07
5.6.400.0090.01216.30
5.6.390.0070.01816.18
5.6.380.0130.00716.13
5.6.370.0060.01216.18
5.6.360.0100.01016.28
5.6.350.0030.01615.86
5.6.340.0030.01716.21
5.6.330.0070.01116.32
5.6.320.0060.01316.20
5.6.310.0070.01316.48
5.6.300.0030.01715.93
5.6.290.0070.01315.94
5.6.280.0030.01615.81
5.6.270.0050.01515.75
5.6.260.0070.02015.89
5.6.250.0080.01215.84
5.6.240.0090.01216.30
5.6.230.0000.01915.99
5.6.220.0090.01516.30
5.6.210.0100.01416.21
5.6.200.0120.01216.11
5.6.190.0120.00615.95
5.6.180.0060.01216.29
5.6.170.0060.01216.09
5.6.160.0000.02016.09
5.6.150.0060.01316.03
5.6.140.0120.01216.30
5.6.130.0000.02016.24
5.6.120.0090.01016.25
5.6.110.0040.01516.22
5.6.100.0080.01116.34
5.6.90.0030.01716.45
5.6.80.0070.01815.83
5.6.70.0070.01715.75
5.6.60.0120.01216.08
5.6.50.0090.01316.22
5.6.40.0090.01515.86
5.6.30.0120.00615.90
5.6.20.0100.01015.95
5.6.10.0100.01015.81
5.6.00.0080.01115.96

preferences:
39.94 ms | 400 KiB | 5 Q