3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ "test string", "lado lomidze needs a solution", "I made some research and found 'good' answers here; they really helped me." ]; // if not already all lowercase, use strtolower() var_export(preg_replace_callback('/(^|.)\K\w/', function($m) {return strtoupper($m[0]); }, $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.0110.01120.09
8.4.150.0000.00214.05
8.4.140.0090.01217.48
8.4.130.0050.00517.57
8.4.120.0130.00720.71
8.4.110.0120.01018.81
8.4.100.0060.00418.02
8.4.90.0070.00517.98
8.4.80.0140.00717.96
8.4.70.0140.00918.54
8.4.60.0050.00318.82
8.4.50.0130.00720.49
8.4.40.0030.00619.85
8.4.30.0110.01120.49
8.4.20.0100.00018.88
8.4.10.0060.00318.03
8.3.280.0100.01018.62
8.3.270.0090.01016.75
8.3.260.0110.00916.59
8.3.250.0050.00818.80
8.3.240.0120.00817.22
8.3.230.0090.00816.55
8.3.220.0110.00917.13
8.3.210.0120.00716.73
8.3.200.0070.00416.86
8.3.190.0060.00216.98
8.3.180.0050.00319.14
8.3.170.0090.00620.93
8.3.160.0120.00617.06
8.3.150.0090.00016.80
8.3.140.0000.00819.23
8.3.130.0070.00716.79
8.3.120.0040.01118.80
8.3.110.0100.00720.94
8.3.100.0110.00716.92
8.3.90.0080.00026.77
8.3.80.0090.00019.36
8.3.70.0040.01116.62
8.3.60.0040.01616.62
8.3.50.0140.00716.71
8.3.40.0120.00418.79
8.3.30.0140.00718.78
8.3.20.0030.00624.18
8.3.10.0000.00724.66
8.3.00.0080.00026.16
8.2.290.0070.01120.32
8.2.280.0090.00918.56
8.2.270.0090.00616.70
8.2.260.0110.00716.83
8.2.250.0090.00617.03
8.2.240.0090.00918.93
8.2.230.0060.00622.58
8.2.220.0050.00324.06
8.2.210.0150.00326.77
8.2.200.0060.00318.88
8.2.190.0140.00416.63
8.2.180.0150.00625.92
8.2.170.0140.00419.04
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0050.00326.35
8.2.110.0060.00320.35
8.2.100.0060.00617.68
8.2.90.0050.00318.09
8.2.80.0110.00017.97
8.2.70.0030.00517.93
8.2.60.0030.00518.27
8.2.50.0000.00918.10
8.2.40.0000.00821.15
8.2.30.0040.00419.39
8.2.20.0080.00018.16
8.2.10.0040.00419.36
8.2.00.0000.00719.22
8.1.330.0140.00518.45
8.1.320.0120.00918.20
8.1.310.0050.00316.22
8.1.300.0100.00016.65
8.1.290.0040.00430.84
8.1.280.0110.00425.92
8.1.270.0050.00223.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0110.00822.60
8.1.230.0060.00622.50
8.1.220.0050.00317.78
8.1.210.0070.00418.91
8.1.200.0110.00017.60
8.1.190.0050.00317.60
8.1.180.0000.01218.10
8.1.170.0050.00318.77
8.1.160.0040.00418.93
8.1.150.0000.00718.84
8.1.140.0040.00418.97
8.1.130.0040.00420.05
8.1.120.0080.00017.52
8.1.110.0000.00717.64
8.1.100.0000.00717.51
8.1.90.0000.00917.61
8.1.80.0000.01017.52
8.1.70.0030.00517.49
8.1.60.0000.00817.78
8.1.50.0060.00317.72
8.1.40.0000.00717.62
8.1.30.0080.00317.79
8.1.20.0000.00817.72
8.1.10.0030.00517.71
8.1.00.0040.00417.63
8.0.300.0040.00420.15
8.0.290.0060.00317.00
8.0.280.0030.00318.43
8.0.270.0000.00716.93
8.0.260.0000.00618.33
8.0.250.0060.00316.93
8.0.240.0030.00316.97
8.0.230.0030.00316.93
8.0.220.0000.00817.03
8.0.210.0000.00716.95
8.0.200.0080.00017.09
8.0.190.0030.00616.98
8.0.180.0000.00717.07
8.0.170.0030.00617.05
8.0.160.0070.00017.16
8.0.150.0000.00717.03
8.0.140.0060.00316.94
8.0.130.0000.00613.55
8.0.120.0050.00216.93
8.0.110.0000.00717.12
8.0.100.0040.00416.85
8.0.90.0040.00416.93
8.0.80.0090.00717.01
8.0.70.0070.00017.16
8.0.60.0000.00716.91
8.0.50.0000.00816.85
8.0.30.0110.00417.07
8.0.20.0130.00317.00
8.0.10.0120.00317.10
8.0.00.0080.00817.19
7.4.330.0030.00315.55
7.4.320.0030.00316.71
7.4.300.0000.00716.67
7.4.290.0000.00816.74
7.4.280.0070.00016.80
7.4.270.0030.00316.83
7.4.260.0030.00313.62
7.4.250.0080.00016.60
7.4.240.0020.00516.75
7.4.230.0090.00016.64
7.4.220.0040.00416.65
7.4.210.0050.01016.73
7.4.200.0000.00716.72
7.4.160.0030.01016.99
7.4.150.0070.00716.79
7.4.140.0070.01016.71
7.4.130.0130.00316.79
7.4.120.0070.00716.65
7.4.110.0030.01016.76
7.4.100.0110.00416.91
7.4.90.0040.01116.69
7.4.80.0000.01416.61
7.4.70.0060.01216.57
7.4.60.0000.01416.61
7.4.50.0030.01316.59
7.4.40.0120.00616.61
7.4.30.0100.00716.57
7.4.20.0060.00916.55
7.4.10.0090.00616.61
7.4.00.0030.01216.55
7.3.330.0070.00016.55
7.3.320.0060.00013.48
7.3.310.0020.00516.40
7.3.300.0070.00016.36
7.3.290.0070.00916.38
7.3.280.0040.01216.36
7.3.270.0060.00916.47
7.3.260.0090.00616.37
7.3.250.0030.01016.38
7.3.240.0100.00716.44
7.3.230.0100.00316.39
7.3.220.0070.00716.35
7.3.210.0110.00316.41
7.3.200.0090.00616.38
7.3.190.0000.01416.41
7.3.180.0070.00716.37
7.3.170.0040.01416.42
7.3.160.0090.00616.33
7.3.150.0040.01216.42
7.3.140.0120.00316.29
7.3.130.0070.00716.39
7.3.120.0100.01016.36
7.3.110.0040.01516.41
7.3.100.0100.01016.23
7.3.90.0120.00616.67
7.3.80.0040.01116.39
7.3.70.0080.00816.53
7.3.60.0080.00816.53
7.3.50.0100.00716.54
7.3.40.0070.01416.54
7.3.30.0060.00916.62
7.3.20.0120.00318.36
7.3.10.0040.01118.22
7.3.00.0040.01118.35

preferences:
183.17 ms | 403 KiB | 5 Q