3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ 'he said "hello worLd"', 'he sAId "καλημέρα ΚΌΣΜΕ" to me', "Ryan's shirts are verY large", ]; var_export( preg_replace_callback('/[^"]+/', fn($m) => mb_convert_case($m[0], MB_CASE_TITLE, "UTF-8"), $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.5.00.0090.01220.39
8.4.150.0010.00114.05
8.4.140.0100.01117.76
8.4.130.0060.00518.13
8.4.120.0120.00724.41
8.4.110.0060.00422.53
8.4.100.0150.00617.98
8.4.90.0120.01020.71
8.4.80.0060.00418.76
8.4.70.0070.00920.80
8.4.60.0140.00620.42
8.4.50.0120.00818.79
8.4.40.0150.00618.02
8.4.30.0040.00422.46
8.4.20.0070.01317.65
8.4.10.0060.00319.48
8.3.280.0120.00818.82
8.3.270.0110.00816.82
8.3.260.0120.00716.83
8.3.250.0110.00818.86
8.3.240.0090.01017.23
8.3.230.0160.00416.86
8.3.220.0060.00319.17
8.3.210.0040.00516.68
8.3.200.0050.00416.92
8.3.190.0090.00617.22
8.3.180.0040.00518.90
8.3.170.0120.00619.02
8.3.160.0060.00316.54
8.3.150.0030.00618.81
8.3.140.0150.00416.72
8.3.130.0080.00016.74
8.3.120.0000.00820.73
8.3.110.0070.01320.94
8.3.100.0080.00016.60
8.3.90.0040.00426.77
8.3.80.0060.00316.63
8.3.70.0090.00616.58
8.3.60.0120.00918.63
8.3.50.0150.00316.73
8.3.40.0050.00920.29
8.3.30.0090.00621.79
8.3.20.0040.00424.18
8.3.10.0030.00624.66
8.3.00.0040.00426.16
8.2.290.0130.00717.05
8.2.280.0130.00718.63
8.2.270.0160.00317.45
8.2.260.0110.00817.18
8.2.250.0060.00317.17
8.2.240.0040.00417.50
8.2.230.0030.00722.58
8.2.220.0040.00424.06
8.2.210.0000.00926.77
8.2.200.0030.01016.75
8.2.190.0090.00616.75
8.2.180.0150.00616.75
8.2.170.0150.00619.09
8.2.160.0090.00622.96
8.2.150.0080.00025.66
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0040.00418.75
8.2.110.0140.00720.54
8.2.100.0160.00719.30
8.2.90.0120.00618.98
8.2.80.0100.01318.92
8.2.70.0110.01119.06
8.2.60.0070.01519.07
8.2.50.0130.00920.86
8.2.40.0110.00418.95
8.2.30.0100.01318.76
8.2.20.0140.00418.78
8.2.10.0130.00919.21
8.2.00.0190.00319.17
8.1.330.0090.00622.02
8.1.320.0070.01216.34
8.1.310.0110.00716.59
8.1.300.0100.00018.03
8.1.290.0060.00330.84
8.1.280.0000.01425.92
8.1.270.0040.00423.99
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0140.01018.70
8.1.230.0100.01718.61
8.1.220.0160.00618.61
8.1.210.0110.01120.12
8.1.200.0030.00618.80
8.1.190.0190.00318.68
8.1.180.0100.00018.68
8.1.170.0180.00418.86
8.1.160.0150.00318.94
8.1.150.0090.00920.69
8.1.140.0070.01118.75
8.1.130.0150.00318.81
8.1.120.0150.00718.79
8.1.110.0200.00318.75
8.1.100.0160.00618.75
8.1.90.0200.00318.58
8.1.80.0090.00918.81
8.1.70.0160.00618.77
8.1.60.0130.01018.82
8.1.50.0100.00718.79
8.1.40.0050.00518.75
8.1.30.0030.00819.09
8.1.20.0000.01118.85
8.1.10.0070.00318.55
8.1.00.0060.00318.82
8.0.300.0000.01017.96
8.0.290.0100.00017.92
8.0.280.0070.00317.98
8.0.270.0040.00917.95
8.0.260.0060.00617.95
8.0.250.0060.00317.95
8.0.240.0000.01018.08
8.0.230.0060.00318.39
8.0.220.0100.00017.98
8.0.210.0030.00617.97
8.0.200.0050.00517.98
8.0.190.0100.00018.00
8.0.180.0070.00317.96
8.0.170.0070.00318.14
8.0.160.0030.00718.09
8.0.150.0100.00018.10
8.0.140.0070.00418.09
8.0.130.0060.00318.12
8.0.120.0090.00617.96
8.0.110.0050.00517.96
8.0.100.0030.00618.13
8.0.90.0090.00618.00
8.0.80.0120.00618.03
8.0.70.0100.00018.00
8.0.60.0070.00318.14
8.0.50.0080.00417.89
8.0.30.0030.00617.99
8.0.20.0070.00718.04
8.0.10.0100.00718.13

preferences:
36.95 ms | 403 KiB | 5 Q