3v4l.org

run code in 300+ PHP versions simultaneously
<?php function titleCaseSpecial($string) { return preg_replace_callback( '~[/.-]\p{Ll}~u', function ($m) { return mb_strtoupper($m[0], 'UTF-8'); }, mb_convert_case($string, MB_CASE_TITLE, 'UTF-8') ); } $strings = [ 'Name: MR. M.A.D KARIM', 'Address: 12/A, ROOM NO-B 13' ]; var_export( array_map('titleCaseSpecial', $strings) );

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.4.120.0120.00820.54
8.4.110.0140.00718.95
8.4.100.0110.01017.96
8.4.90.0100.01018.84
8.4.80.0040.00618.06
8.4.70.0100.00118.22
8.4.60.0080.01118.55
8.4.50.0130.00818.33
8.4.40.0160.00619.52
8.4.30.0070.01120.59
8.4.20.0110.01120.67
8.4.10.0080.00018.10
8.3.250.0100.00919.04
8.3.240.0120.00716.77
8.3.230.0140.00616.76
8.3.220.0040.00517.09
8.3.210.0030.00418.55
8.3.200.0050.00316.89
8.3.190.0090.01017.16
8.3.180.0080.01116.63
8.3.170.0040.00419.05
8.3.160.0150.00317.36
8.3.150.0100.00717.34
8.3.140.0080.01116.79
8.3.130.0060.00318.96
8.3.120.0040.00420.84
8.3.110.0150.00320.94
8.3.100.0090.00018.56
8.3.90.0030.00626.77
8.3.80.0060.00317.97
8.3.70.0160.00616.88
8.3.60.0060.01216.88
8.3.50.0000.01718.21
8.3.40.0070.01318.96
8.3.30.0070.00718.91
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0000.00726.16
8.2.290.0080.01120.34
8.2.280.0060.00820.38
8.2.270.0140.00319.09
8.2.260.0000.00818.75
8.2.250.0000.00818.76
8.2.240.0030.00617.30
8.2.230.0080.00022.58
8.2.220.0130.00324.06
8.2.210.0040.01226.77
8.2.200.0050.00516.75
8.2.190.0200.00318.66
8.2.180.0120.00325.92
8.2.170.0160.00319.02
8.2.160.0030.01022.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0110.00026.16
8.2.120.0040.00421.11
8.2.110.0030.00621.30
8.2.100.0060.00618.09
8.2.90.0040.00419.35
8.2.80.0040.00417.97
8.2.70.0050.00317.75
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0030.00618.31
8.2.30.0070.00018.22
8.2.20.0000.00718.27
8.2.10.0000.00719.31
8.2.00.0050.00319.28
8.1.330.0120.00621.80
8.1.320.0140.00516.63
8.1.310.0060.00316.85
8.1.300.0090.00020.28
8.1.290.0080.00330.84
8.1.280.0090.00625.92
8.1.270.0060.00323.99
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0080.00019.21
8.1.230.0110.00017.95
8.1.220.0040.00417.91
8.1.210.0000.00918.77
8.1.200.0090.00017.73
8.1.190.0000.00817.47
8.1.180.0000.00918.10
8.1.170.0000.00918.80
8.1.160.0050.00219.09
8.1.150.0040.00419.00
8.1.140.0060.00319.12
8.1.130.0000.00720.41
8.1.120.0000.00717.73
8.1.110.0030.00317.70
8.1.100.0040.00417.70
8.1.90.0040.00417.60
8.1.80.0000.00917.63
8.1.70.0000.00717.73
8.1.60.0030.00517.70
8.1.50.0090.00017.76
8.1.40.0030.00617.71
8.1.30.0000.00817.88
8.1.20.0030.00617.85
8.1.10.0080.00017.63
8.1.00.0020.00517.71
8.0.300.0050.00318.77
8.0.290.0040.00416.88
8.0.280.0030.00318.51
8.0.270.0000.00718.23
8.0.260.0000.00618.51
8.0.250.0030.00517.05
8.0.240.0000.00717.23
8.0.230.0000.00717.06
8.0.220.0070.00017.11
8.0.210.0000.00717.25
8.0.200.0000.00617.29
8.0.190.0000.00817.14
8.0.180.0040.00417.23
8.0.170.0000.00917.07
8.0.160.0040.00417.07
8.0.150.0050.00317.08
8.0.140.0070.00017.02
8.0.130.0000.00613.57
8.0.120.0060.00317.25
8.0.110.0070.00017.11
8.0.100.0080.00017.18
8.0.90.0050.00317.23
8.0.80.0000.00717.27
8.0.70.0040.00417.19
8.0.60.0040.00417.25
8.0.50.0070.00017.03
8.0.30.0030.00517.13
8.0.20.0000.00817.10
8.0.10.0050.00217.22
8.0.00.0000.00817.12
7.4.330.0000.00515.55
7.4.320.0060.00016.88
7.4.300.0060.00016.91
7.4.290.0040.00416.87
7.4.280.0070.00016.83
7.4.270.0050.00216.89
7.4.260.0030.00313.62
7.4.250.0040.00416.77
7.4.240.0040.00416.80
7.4.230.0030.00517.05
7.4.220.0000.00816.94
7.4.210.0000.00716.97
7.4.200.0060.00316.74
7.4.190.0030.00316.96
7.4.180.0030.00316.77
7.4.160.0000.00716.77
7.4.150.0040.00416.98
7.4.140.0050.00216.59
7.4.130.0030.00316.54
7.4.120.0000.00716.85
7.4.110.0070.00016.48
7.4.100.0000.00716.94
7.4.90.0030.00516.84
7.4.80.0070.00016.85
7.4.70.0040.00416.57
7.4.60.0070.00016.71
7.4.50.0070.00016.55
7.4.40.0030.00316.77
7.4.30.0070.00016.87
7.4.20.0000.00716.54
7.4.10.0000.00716.66
7.4.00.0000.00716.82
7.3.330.0070.00016.51
7.3.320.0060.00013.63
7.3.310.0030.00316.68
7.3.300.0030.00516.67
7.3.290.0000.00816.66
7.3.280.0000.00816.51
7.3.270.0070.00016.56
7.3.260.0060.00016.43
7.3.250.0040.00416.44
7.3.240.0030.00316.59
7.3.230.0000.00716.44
7.3.220.0000.00816.38
7.3.210.0030.00316.56
7.3.200.0030.00316.35
7.3.190.0040.00416.57
7.3.180.0030.00316.38
7.3.170.0030.00316.48
7.3.160.0030.00316.55
7.3.150.0000.00616.54
7.3.140.0040.00416.54
7.3.130.0000.00616.43
7.3.120.0030.00316.48
7.3.110.0000.00616.53
7.3.100.0000.00716.56
7.3.90.0020.00516.73
7.3.80.0030.00316.39
7.3.70.0040.00416.63
7.3.60.0030.00316.55
7.3.50.0000.00616.73
7.3.40.0000.00716.64
7.3.30.0030.00316.59
7.3.20.0070.00018.48
7.3.10.0070.00018.21
7.3.00.0000.00718.37

preferences:
29.27 ms | 403 KiB | 5 Q