3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pipedExclusions = 'SMK|USA|AUS'; echo preg_replace_callback( '~\b(?:(?:' . $pipedExclusions . ')(*SKIP)(*FAIL)|\p{Lu}+)\b~u', function($m) { return mb_convert_case($m[0], MB_CASE_TITLE); }, 'SMK SUNGAI PUNAI' );

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.0070.00716.75
8.3.60.0060.00916.88
8.3.50.0120.00918.21
8.3.40.0170.00319.14
8.3.30.0090.00919.09
8.3.20.0040.00424.18
8.3.10.0030.00524.66
8.3.00.0040.00426.16
8.2.190.0090.00616.88
8.2.180.0150.00325.92
8.2.170.0090.00618.96
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00821.06
8.2.110.0030.00620.58
8.2.100.0060.00618.16
8.2.90.0000.00817.88
8.2.80.0050.00319.04
8.2.70.0080.00017.75
8.2.60.0030.00518.05
8.2.50.0060.00318.07
8.2.40.0050.00318.22
8.2.30.0000.00818.19
8.2.20.0000.00718.13
8.2.10.0060.00319.30
8.2.00.0030.00619.41
8.1.280.0070.01025.92
8.1.270.0070.00723.99
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0000.01123.85
8.1.230.0080.00420.94
8.1.220.0000.00817.76
8.1.210.0080.00018.77
8.1.200.0060.00317.47
8.1.190.0040.00417.60
8.1.180.0060.00318.10
8.1.170.0030.00618.91
8.1.160.0000.00918.99
8.1.150.0040.00418.99
8.1.140.0040.00419.12
8.1.130.0030.00320.35
8.1.120.0040.00417.70
8.1.110.0020.00517.64
8.1.100.0070.00017.72
8.1.90.0050.00317.64
8.1.80.0090.00017.59
8.1.70.0030.00317.70
8.1.60.0060.00317.72
8.1.50.0030.00517.64
8.1.40.0030.00517.72
8.1.30.0060.00317.82
8.1.20.0000.00817.78
8.1.10.0000.00817.71
8.1.00.0040.00417.73
8.0.300.0050.00318.77
8.0.290.0030.00617.00
8.0.280.0000.00718.53
8.0.270.0000.00818.23
8.0.260.0040.00418.65
8.0.250.0070.00017.23
8.0.240.0000.00617.14
8.0.230.0040.00417.21
8.0.220.0000.00717.12
8.0.210.0050.00317.26
8.0.200.0030.00317.28
8.0.190.0080.00017.13
8.0.180.0030.00517.18
8.0.170.0030.00617.21
8.0.160.0030.00617.19
8.0.150.0040.00417.06
8.0.140.0070.00017.09
8.0.130.0030.00313.53
8.0.120.0060.00317.17
8.0.110.0070.00017.06
8.0.100.0050.00217.23
8.0.90.0000.00817.17
8.0.80.0000.00817.16
8.0.70.0050.00317.09
8.0.60.0030.00517.23
8.0.50.0030.00517.18
8.0.30.0050.00317.07
8.0.20.0000.00817.32
8.0.10.0050.00317.28
8.0.00.0040.00417.12
7.4.330.0020.00515.55
7.4.320.0040.00416.75
7.4.300.0000.00716.93
7.4.290.0000.00816.76
7.4.280.0070.00016.94
7.4.270.0080.00016.85
7.4.260.0000.00613.53
7.4.250.0040.00416.79
7.4.240.0070.00016.92
7.4.230.0070.00016.68
7.4.220.0030.00616.73
7.4.210.0040.00416.91
7.4.200.0000.00917.02
7.4.190.0000.00816.68
7.4.180.0070.00016.83
7.4.160.0040.00416.92
7.4.150.0040.00416.75
7.4.140.0020.00516.55
7.4.130.0040.00416.95
7.4.120.0000.00816.95
7.4.110.0020.00516.71
7.4.100.0070.00016.77
7.4.90.0000.00716.88
7.4.80.0030.00516.87
7.4.70.0000.00816.80
7.4.60.0000.00716.88
7.4.50.0090.00016.88
7.4.40.0000.00816.75
7.4.30.0050.00316.64
7.4.20.0050.00316.54
7.4.10.0050.00517.09
7.4.00.0050.00317.00
7.3.330.0000.00716.60
7.3.320.0030.00613.56
7.3.310.0070.00016.75
7.3.300.0000.00716.72
7.3.290.0000.00716.59
7.3.280.0020.00516.52
7.3.270.0020.00516.68
7.3.260.0000.00716.46
7.3.250.0050.00216.60
7.3.240.0050.00216.68
7.3.230.0000.00716.70
7.3.220.0000.00816.54
7.3.210.0040.00416.63
7.3.200.0080.00016.45
7.3.190.0060.00316.50
7.3.180.0080.00016.51
7.3.170.0050.00516.59
7.3.160.0030.00616.58
7.3.150.0030.00616.54
7.3.140.0030.00516.43
7.3.130.0080.00016.58
7.3.120.0080.00316.62
7.3.110.0040.00416.50
7.3.100.0000.00916.45
7.3.90.0020.00516.78
7.3.80.0000.00916.51
7.3.70.0020.00516.57
7.3.60.0080.00016.69
7.3.50.0030.00316.71
7.3.40.0040.00416.69
7.3.30.0050.00516.55
7.3.20.0060.00616.66
7.3.10.0070.00316.52
7.3.00.0060.00316.69

preferences:
48.25 ms | 401 KiB | 5 Q