3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "cURL: A programming language"; $result = preg_replace_callback('/^([^a-z]*)([a-z])/i', function($m) { return $m[1].strtoupper($m[2]); }, $text); echo $result;

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.0070.01118.43
8.3.50.0260.00523.07
8.3.40.0120.00918.93
8.3.30.0070.00719.23
8.3.20.0040.00420.35
8.3.10.0000.00823.65
8.3.00.0060.00319.38
8.2.180.0000.01516.63
8.2.170.0110.01122.96
8.2.160.0130.00020.39
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0040.00421.03
8.2.110.0060.00320.96
8.2.100.0040.00817.91
8.2.90.0030.00517.97
8.2.80.0050.00318.00
8.2.70.0070.00317.88
8.2.60.0050.00317.93
8.2.50.0060.00318.07
8.2.40.0050.00320.19
8.2.30.0030.00618.21
8.2.20.0060.00317.88
8.2.10.0080.00018.08
8.2.00.0050.00217.78
8.1.280.0040.01525.92
8.1.270.0040.00423.80
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00322.65
8.1.230.0080.00420.87
8.1.220.0040.00417.79
8.1.210.0030.00518.77
8.1.200.0090.00017.48
8.1.190.0040.00417.48
8.1.180.0080.00018.10
8.1.170.0040.00418.84
8.1.160.0000.00722.09
8.1.150.0000.00718.92
8.1.140.0070.00017.66
8.1.130.0030.00317.86
8.1.120.0000.00717.55
8.1.110.0040.00417.64
8.1.100.0030.00417.56
8.1.90.0050.00317.60
8.1.80.0000.00717.53
8.1.70.0030.00317.50
8.1.60.0030.00717.64
8.1.50.0000.00817.67
8.1.40.0050.00317.70
8.1.30.0030.00517.66
8.1.20.0000.00917.84
8.1.10.0080.00017.77
8.1.00.0000.00817.67
8.0.300.0050.00219.96
8.0.290.0000.00716.88
8.0.280.0040.00418.52
8.0.270.0040.00417.19
8.0.260.0000.00717.28
8.0.250.0030.00317.07
8.0.240.0030.00317.17
8.0.230.0000.00716.95
8.0.220.0050.00317.07
8.0.210.0000.00717.08
8.0.200.0030.00317.15
8.0.190.0090.00317.00
8.0.180.0040.00416.95
8.0.170.0080.00016.98
8.0.160.0000.00717.11
8.0.150.0030.00317.02
8.0.140.0000.00816.95
8.0.130.0000.00613.41
8.0.120.0040.00416.93
8.0.110.0050.00317.05
8.0.100.0070.00017.07
8.0.90.0030.00517.09
8.0.80.0070.01017.01
8.0.70.0000.00716.91
8.0.60.0080.00017.07
8.0.50.0040.00416.84
8.0.30.0100.00917.12
8.0.20.0080.01117.40
8.0.10.0040.00417.05
8.0.00.0130.00517.02
7.4.330.0050.00015.05
7.4.320.0000.00616.84
7.4.300.0060.00016.86
7.4.290.0030.00316.72
7.4.280.0050.00316.82
7.4.270.0000.00716.87
7.4.260.0000.00716.73
7.4.250.0030.00516.78
7.4.240.0040.00416.80
7.4.230.0000.00716.61
7.4.220.0110.00716.73
7.4.210.0060.00916.70
7.4.200.0000.00816.91
7.4.160.0100.01016.57
7.4.150.0030.01517.40
7.4.140.0100.00817.86
7.4.130.0090.00816.88
7.4.120.0180.00316.78
7.4.110.0130.00316.84
7.4.100.0090.00916.84
7.4.90.0110.00716.75
7.4.80.0100.00719.39
7.4.70.0090.00916.73
7.4.60.0090.00916.88
7.4.50.0000.00816.69
7.4.40.0130.01016.52
7.4.30.0060.00916.77
7.4.00.0040.01114.90
7.3.330.0030.00313.30
7.3.320.0000.00513.52
7.3.310.0000.00716.38
7.3.300.0030.00316.52
7.3.290.0100.00316.47
7.3.280.0090.01016.45
7.3.270.0040.01517.40
7.3.260.0150.00816.74
7.3.250.0130.00316.55
7.3.240.0090.00916.53
7.3.230.0100.00716.63
7.3.210.0080.00816.65
7.3.200.0070.01019.39
7.3.190.0120.00916.91
7.3.180.0100.00616.63
7.3.170.0120.00416.48
7.3.160.0060.00916.54
7.2.330.0090.00916.91
7.2.320.0060.01016.81
7.2.310.0120.00916.98
7.2.300.0030.01316.70
7.2.290.0040.01217.01
7.2.60.0100.00316.86
7.2.00.0100.00319.36
7.1.200.0090.00616.06
7.1.100.0080.00318.28
7.1.70.0000.00817.07
7.1.60.0100.01419.40
7.1.50.0070.01717.11
7.1.00.0030.07322.47
7.0.200.0090.00016.68
7.0.140.0030.07722.19
7.0.60.0030.05319.93
7.0.50.0070.07017.89
7.0.40.0100.07320.27
7.0.30.0230.08020.23
7.0.20.0300.07320.14
7.0.10.0130.08320.25
7.0.00.0030.06020.27
5.6.280.0000.07721.10
5.6.210.0000.05020.70
5.6.200.0170.07018.16
5.6.190.0100.08720.67
5.6.180.0330.06020.34
5.6.170.0230.08020.71
5.6.160.0030.09020.48
5.6.150.0030.03718.18
5.6.140.0070.05018.23
5.6.130.0100.08318.13
5.6.120.0000.04320.98
5.6.110.0100.08021.14
5.6.100.0170.07320.98
5.6.90.0130.05021.13
5.6.80.0030.06320.43
5.5.350.2530.03720.36
5.5.340.0100.08018.07
5.5.330.0070.08720.30
5.5.320.0170.05320.27
5.5.310.0300.08720.21
5.5.300.0070.05318.14
5.5.290.0070.08017.99
5.5.280.0130.06320.88
5.5.270.0170.07320.89
5.5.260.0100.08320.97
5.5.250.0130.08320.68
5.5.240.0100.05320.18
5.4.450.1000.07019.58
5.4.440.0830.05319.58
5.4.430.0800.05319.32
5.4.420.0730.05019.65
5.4.410.0730.06019.16
5.4.400.0870.04319.18
5.4.390.0830.05318.90
5.4.380.0170.04718.77
5.4.370.0070.04018.77
5.4.360.0070.05318.75
5.4.350.0080.04612.02
5.4.340.0060.03712.02
5.4.320.0070.03712.50
5.4.310.0060.03912.50
5.4.300.0040.04012.50
5.4.290.0050.04312.49
5.4.280.0040.03912.39
5.4.270.0070.03612.40
5.4.260.0060.03712.39
5.4.250.0040.03912.39
5.4.240.0110.03712.39
5.4.230.0030.03912.39
5.4.220.0070.03412.39
5.4.210.0040.03712.38
5.4.200.0050.03812.39
5.4.190.0040.03712.38
5.4.180.0060.03512.39
5.4.170.0080.03312.39
5.4.160.0050.03612.39
5.4.150.0040.03712.39
5.4.140.0040.03912.07
5.4.130.0100.03612.06
5.4.120.0060.03512.02
5.4.110.0090.03312.02
5.4.100.0040.03812.01
5.4.90.0060.03512.01
5.4.80.0090.04012.01
5.4.70.0040.03712.00
5.4.60.0060.03912.01
5.4.50.0060.03612.01
5.4.40.0040.03811.99
5.4.30.0070.03911.99
5.4.20.0040.04512.00
5.4.10.0090.04612.00
5.4.00.0050.04411.48
5.3.290.0070.03812.80
5.3.280.0050.03812.71
5.3.270.0040.04112.72
5.3.260.0040.04112.72
5.3.250.0060.04212.72
5.3.240.0090.04112.72
5.3.230.0080.04812.71
5.3.220.0100.05412.68
5.3.210.0070.04412.68
5.3.200.0070.03712.68
5.3.190.0040.04212.68
5.3.180.0070.05312.67
5.3.170.0070.04112.66
5.3.160.0110.04212.68
5.3.150.0090.03812.67
5.3.140.0080.03612.66
5.3.130.0120.04212.66
5.3.120.0050.04212.66
5.3.110.0130.03412.66
5.3.100.0050.03912.13
5.3.90.0050.04212.11
5.3.80.0100.03412.11
5.3.70.0100.03412.10
5.3.60.0020.04212.09
5.3.50.0060.04012.04
5.3.40.0040.04112.03
5.3.30.0090.03211.98
5.3.20.0030.03911.78
5.3.10.0050.03811.74
5.3.00.0080.03511.73
5.2.170.0030.0339.18
5.2.160.0060.0299.18
5.2.150.0070.0299.18
5.2.140.0090.0299.18
5.2.130.0090.0349.14
5.2.120.0080.0359.14
5.2.110.0060.0299.15
5.2.100.0080.0269.14
5.2.90.0060.0299.14
5.2.80.0030.0339.14
5.2.70.0040.0329.14
5.2.60.0020.0349.09
5.2.50.0040.0329.06
5.2.40.0030.0319.04
5.2.30.0030.0329.02
5.2.20.0050.0299.01
5.2.10.0040.0308.93
5.2.00.0050.0298.78
5.1.60.0050.0238.07
5.1.50.0020.0278.06
5.1.40.0060.0228.05
5.1.30.0030.0278.40
5.1.20.0030.0288.41
5.1.10.0040.0278.14
5.1.00.0040.0268.14
5.0.50.0020.0226.62
5.0.40.0070.0166.48
5.0.30.0070.0276.29
5.0.20.0020.0216.27
5.0.10.0040.0206.24
5.0.00.0020.0326.23
4.4.90.0020.0164.78
4.4.80.0000.0174.75
4.4.70.0010.0174.75
4.4.60.0020.0174.75
4.4.50.0010.0174.77
4.4.40.0010.0274.71
4.4.30.0020.0164.76
4.4.20.0030.0154.84
4.4.10.0030.0154.85
4.4.00.0030.0304.75
4.3.110.0020.0184.67
4.3.100.0050.0134.66
4.3.90.0030.0144.63
4.3.80.0030.0244.58
4.3.70.0020.0164.63
4.3.60.0020.0164.63
4.3.50.0030.0184.63
4.3.40.0060.0224.54
4.3.30.0020.0163.28
4.3.20.0030.0153.26
4.3.10.0020.0163.22
4.3.00.0130.0237.11

preferences:
44.68 ms | 401 KiB | 5 Q