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//TRANSLIT', $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.0040.01117.13
8.3.50.0090.00616.74
8.3.40.0110.00419.10
8.3.30.0040.01118.97
8.3.20.0000.00820.16
8.3.10.0040.00421.84
8.3.00.0080.00019.50
8.2.180.0140.00018.66
8.2.170.0040.01122.96
8.2.160.0030.01020.60
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00021.17
8.2.120.0070.00026.35
8.2.110.0060.00322.26
8.2.100.0110.00017.97
8.2.90.0080.00019.08
8.2.80.0060.00317.97
8.2.70.0080.00017.75
8.2.60.0060.00318.04
8.2.50.0040.00418.10
8.2.40.0040.00420.60
8.2.30.0040.00421.08
8.2.20.0070.00018.10
8.2.10.0050.00318.17
8.2.00.0000.00818.24
8.1.280.0160.00925.92
8.1.270.0040.00422.31
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.75
8.1.230.0030.00917.77
8.1.220.0050.00317.91
8.1.210.0030.00618.77
8.1.200.0000.00917.60
8.1.190.0050.00317.48
8.1.180.0040.00418.10
8.1.170.0060.00319.13
8.1.160.0030.00519.09
8.1.150.0030.00620.59
8.1.140.0030.00619.55
8.1.130.0000.00718.88
8.1.120.0040.00417.64
8.1.110.0100.00017.60
8.1.100.0000.00717.49
8.1.90.0000.01017.67
8.1.80.0050.00217.68
8.1.70.0070.00017.67
8.1.60.0090.00017.78
8.1.50.0030.00617.64
8.1.40.0090.00017.53
8.1.30.0080.00017.79
8.1.20.0000.00817.77
8.1.10.0040.00417.76
8.1.00.0040.00417.63
8.0.300.0090.00018.77
8.0.290.0000.00817.00
8.0.280.0040.00418.58
8.0.270.0080.00017.23
8.0.260.0000.00717.05
8.0.250.0000.00717.32
8.0.240.0000.01117.15
8.0.230.0040.00417.27
8.0.220.0030.00317.09
8.0.210.0050.00217.18
8.0.200.0030.00317.32
8.0.190.0000.00917.15
8.0.180.0040.00417.16
8.0.170.0040.00417.23
8.0.160.0000.00717.26
8.0.150.0000.00717.22
8.0.140.0000.00717.16
8.0.130.0030.00313.63
8.0.120.0040.00417.27
8.0.110.0040.00417.23
8.0.100.0030.00617.23
8.0.90.0040.00417.32
8.0.80.0090.00917.33
8.0.70.0030.00617.35
8.0.60.0040.00417.40
8.0.50.0000.00917.17
8.0.30.0090.00917.52
8.0.20.0140.00817.58
8.0.10.0000.00917.47
8.0.00.0100.01017.24
7.4.330.0070.00015.55
7.4.320.0000.00616.82
7.4.300.0060.00016.71
7.4.290.0030.00316.69
7.4.280.0000.00916.85
7.4.270.0070.00016.85
7.4.260.0080.00016.65
7.4.250.0000.00816.88
7.4.240.0050.00317.01
7.4.230.0030.00616.70
7.4.220.0070.01317.04
7.4.210.0080.00816.89
7.4.200.0000.00816.98
7.4.160.0110.01316.80
7.4.150.0090.00917.40
7.4.140.0120.01117.86
7.4.130.0150.00616.93
7.4.120.0070.01816.92
7.4.110.0130.00616.91
7.4.100.0060.01316.93
7.4.90.0200.00017.03
7.4.80.0030.01519.39
7.4.70.0070.01116.79
7.4.60.0080.01116.79
7.4.50.0070.01216.69
7.4.40.0130.00716.72
7.4.30.0110.00716.65
7.4.20.0070.01116.37
7.4.10.0040.01416.86
7.4.00.0070.01215.97
7.3.330.0000.00613.51
7.3.320.0000.00513.47
7.3.310.0030.00616.73
7.3.300.0030.00616.75
7.3.290.0030.00616.70
7.3.280.0100.01016.73
7.3.270.0170.00617.40
7.3.260.0100.01017.02
7.3.250.0100.01316.82
7.3.240.0150.00716.89
7.3.230.0160.00616.77
7.3.210.0090.00916.71
7.3.200.0000.02116.69
7.3.190.0130.00816.62
7.3.180.0100.00916.75
7.3.170.0120.00816.82
7.3.160.0070.01016.82
7.3.150.0040.01416.63
7.3.140.0100.01316.57
7.3.130.0120.00616.85
7.3.120.0100.00815.98
7.3.110.0080.01115.90
7.3.100.0050.01116.01
7.3.90.0080.00716.04
7.3.80.0080.01116.10
7.3.70.0090.00815.97
7.3.60.0100.00815.87
7.3.50.0050.01216.07
7.3.40.0050.00916.07
7.3.30.0040.01015.94
7.3.20.0060.01316.79
7.3.10.0100.00716.93
7.3.00.0050.01116.83
7.2.330.0030.01716.90
7.2.320.0130.00717.06
7.2.310.0030.01516.77
7.2.300.0110.01017.01
7.2.290.0120.00716.91
7.2.280.0070.01716.59
7.2.270.0110.00716.56
7.2.260.0060.01216.52
7.2.250.0070.01316.13
7.2.240.0100.01015.86
7.2.230.0060.00816.07
7.2.220.0070.01016.11
7.2.210.0030.01616.15
7.2.200.0060.01116.21
7.2.190.0030.01616.16
7.2.180.0100.00916.06
7.2.170.0120.00516.23
7.2.160.0110.00816.93
7.2.150.0100.01016.98
7.2.140.0060.01316.91
7.2.130.0060.01317.06
7.2.120.0050.01316.95
7.2.110.0050.01317.10
7.2.100.0060.01317.00
7.2.90.0120.00816.85
7.2.80.0090.01217.00
7.2.70.0110.01016.93
7.2.60.0110.01017.12
7.2.50.0100.00917.12
7.2.40.0090.01016.92
7.2.30.0060.01317.07
7.2.20.0130.01016.91
7.2.10.0100.00916.95
7.2.00.0100.00917.04
7.1.330.0100.00616.12
7.1.320.0090.00916.03
7.1.310.0080.01016.00
7.1.300.0030.01616.06
7.1.290.0070.01115.85
7.1.280.0060.01015.87
7.1.270.0150.00516.11
7.1.260.0070.01215.89
7.1.250.0020.01715.92
7.1.240.0220.01215.81
7.1.230.0040.01315.78
7.1.220.0070.01015.87
7.1.210.0090.00915.78
7.1.200.0080.00716.03
7.1.190.0060.01115.75
7.1.180.0070.01215.94
7.1.170.0110.00815.76
7.1.160.0060.00915.90
7.1.150.0140.01015.68
7.1.140.0090.00815.82
7.1.130.0090.00615.90
7.1.120.0050.01215.81
7.1.110.0060.01416.03
7.1.100.0060.01315.80
7.1.90.0070.01115.92
7.1.80.0060.01315.84
7.1.70.0100.00916.18
7.1.60.0140.01322.24
7.1.50.0110.01222.09
7.1.40.0130.01222.09
7.1.30.0130.00922.04
7.1.20.0120.01122.02
7.1.10.0070.01216.24
7.1.00.0100.00716.49
7.0.330.0090.00815.32
7.0.320.0030.01315.47
7.0.310.0080.00815.48
7.0.300.0080.01115.48
7.0.290.0090.00715.55
7.0.280.0030.01315.52
7.0.270.0050.01015.55
7.0.260.0110.00915.66
7.0.250.0110.00815.50
7.0.240.0070.01315.64
7.0.230.0070.00915.65
7.0.220.0050.01015.39
7.0.210.0070.01215.59
7.0.200.0080.00816.09
7.0.190.0060.01316.05
7.0.180.0060.01316.03
7.0.170.0080.01015.88
7.0.160.0100.00715.89
7.0.150.0070.01015.89
7.0.140.0060.00915.97
7.0.130.0060.01215.93
7.0.120.0060.01216.02
7.0.110.0080.01015.98
7.0.100.0060.01515.90
7.0.90.0060.01115.96
7.0.80.0100.00715.95
7.0.70.0080.01016.00
7.0.60.0070.00915.90
7.0.50.0070.01115.94
7.0.40.0090.00815.28
7.0.30.0080.01315.33
7.0.20.0060.01315.29
7.0.10.0110.00515.33
7.0.00.0070.01015.26
5.6.400.0130.00715.88
5.6.390.0070.01416.32
5.6.380.0080.01115.32
5.6.370.0100.01015.89
5.6.360.0100.01015.64
5.6.350.0170.00316.34
5.6.340.0030.01616.36
5.6.330.0060.01316.36
5.6.320.0060.01216.19
5.6.310.0080.01316.23
5.6.300.0070.01315.99
5.6.290.0060.01216.28
5.6.280.0070.01116.29
5.6.270.0090.00916.15
5.6.260.0040.01516.25
5.6.250.0030.01616.05
5.6.240.0070.01115.97
5.6.230.0040.01516.11
5.6.220.0040.01516.32
5.6.210.0070.01915.96
5.6.200.0110.00716.19
5.6.190.0130.01316.00
5.6.180.0090.00916.05
5.6.170.0120.00616.20
5.6.160.0030.01616.25
5.6.150.0060.01316.02
5.6.140.0080.01116.07
5.6.130.0030.02016.25
5.6.120.0090.00916.14
5.6.110.0130.00616.13
5.6.100.0080.01116.33
5.6.90.0120.00616.17
5.6.80.0110.00816.20
5.6.70.0110.00715.84
5.6.60.0080.01216.00
5.6.50.0160.01016.06
5.6.40.0060.01516.20
5.6.30.0130.00616.04
5.6.20.0040.01515.95
5.6.10.0100.01015.82
5.6.00.0090.00915.97

preferences:
79.46 ms | 400 KiB | 5 Q