3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "Mr. & ms.: 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.70.0130.01016.88
8.3.60.0140.00418.41
8.3.50.0230.00523.01
8.3.40.0170.00318.96
8.3.30.0040.01118.91
8.3.20.0040.00420.20
8.3.10.0050.00323.48
8.3.00.0030.00619.38
8.2.180.0150.00016.47
8.2.170.0110.00422.96
8.2.160.0070.00720.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0080.00021.14
8.2.110.0130.00622.14
8.2.100.0040.00717.84
8.2.90.0110.00018.96
8.2.80.0050.00317.97
8.2.70.0060.00317.75
8.2.60.0040.00417.90
8.2.50.0080.00018.07
8.2.40.0030.00620.13
8.2.30.0060.00318.16
8.2.20.0050.00317.96
8.2.10.0000.00718.05
8.2.00.0000.00817.81
8.1.280.0110.01125.92
8.1.270.0070.00723.77
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0160.00023.78
8.1.230.0090.00318.97
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0070.00317.50
8.1.190.0030.00617.47
8.1.180.0000.00818.10
8.1.170.0040.00418.76
8.1.160.0000.00822.05
8.1.150.0050.00318.92
8.1.140.0070.00017.54
8.1.130.0030.00317.86
8.1.120.0040.00417.48
8.1.110.0000.00817.60
8.1.100.0030.00517.58
8.1.90.0050.00217.63
8.1.80.0040.00417.52
8.1.70.0040.00417.61
8.1.60.0030.00617.74
8.1.50.0000.00817.66
8.1.40.0040.00417.64
8.1.30.0030.00517.64
8.1.20.0060.00317.80
8.1.10.0070.00017.77
8.1.00.0030.00617.64
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0000.00718.38
8.0.270.0030.00317.35
8.0.260.0030.00317.38
8.0.250.0030.00317.11
8.0.240.0030.00517.13
8.0.230.0040.00417.10
8.0.220.0000.00716.96
8.0.210.0040.00416.96
8.0.200.0060.00017.10
8.0.190.0050.00517.11
8.0.180.0080.00017.07
8.0.170.0040.00417.12
8.0.160.0080.00017.04
8.0.150.0000.00816.93
8.0.140.0080.00016.98
8.0.130.0060.00013.50
8.0.120.0040.00416.90
8.0.110.0050.00216.94
8.0.100.0040.00417.06
8.0.90.0030.00317.04
8.0.80.0030.01316.96
8.0.70.0000.00817.06
8.0.60.0040.00417.07
8.0.50.0040.00417.11
8.0.30.0140.00717.36
8.0.20.0110.00917.40
8.0.10.0000.00717.00
8.0.00.0060.01117.05
7.4.330.0000.00515.02
7.4.320.0000.00616.80
7.4.300.0030.00316.57
7.4.290.0030.00316.86
7.4.280.0040.00416.84
7.4.270.0000.00716.63
7.4.260.0070.00016.61
7.4.250.0000.00716.55
7.4.240.0050.00316.76
7.4.230.0000.00716.91
7.4.220.0060.01216.68
7.4.210.0050.00816.82
7.4.200.0030.00316.75
7.4.160.0120.00916.73
7.4.150.0160.00417.40
7.4.140.0110.00817.86
7.4.130.0080.01316.77
7.4.120.0090.01116.69
7.4.110.0060.01016.61
7.4.100.0070.01116.85
7.4.90.0090.00916.80
7.4.80.0080.01119.39
7.4.70.0120.01116.73
7.4.60.0090.01216.91
7.4.50.0040.00416.62
7.4.40.0130.01016.84
7.4.30.0060.00916.84
7.4.00.0090.00515.13
7.3.330.0000.00613.39
7.3.320.0000.00513.51
7.3.310.0030.00316.42
7.3.300.0040.00416.54
7.3.290.0070.00716.38
7.3.280.0110.00516.48
7.3.270.0090.00917.40
7.3.260.0100.00716.59
7.3.250.0090.01116.66
7.3.240.0100.00716.54
7.3.230.0120.00416.60
7.3.210.0060.00916.64
7.3.200.0070.01019.39
7.3.190.0040.01416.55
7.3.180.0040.01416.84
7.3.170.0040.01116.62
7.3.160.0130.00316.71
7.3.120.0090.00915.18
7.3.110.0100.00714.79
7.3.100.0110.00415.25
7.3.90.0110.00715.04
7.3.80.0060.00914.82
7.3.70.0090.00315.22
7.3.60.0000.01414.76
7.3.50.0030.01015.17
7.3.40.0070.00414.75
7.3.30.0080.00615.00
7.3.20.0070.00716.86
7.3.10.0050.00716.67
7.3.00.0030.01016.62
7.2.330.0140.00416.62
7.2.320.0130.00316.82
7.2.310.0100.01016.56
7.2.300.0090.01216.93
7.2.290.0090.00616.93
7.2.250.0070.01115.25
7.2.240.0090.00915.21
7.2.230.0030.00715.32
7.2.220.0000.01815.07
7.2.210.0090.00615.43
7.2.200.0070.00715.25
7.2.190.0030.01315.33
7.2.180.0070.00715.03
7.2.170.0030.00915.19
7.2.130.0090.00317.16
7.2.120.0080.00816.71
7.2.110.0060.00617.27
7.2.100.0060.00316.86
7.2.90.0030.01017.13
7.2.80.0040.01216.99
7.2.70.0060.00917.21
7.2.60.0090.00316.87
7.2.50.0090.00917.14
7.2.40.0060.00617.04
7.2.30.0070.00317.09
7.2.20.0070.00717.34
7.2.10.0070.00417.30
7.2.00.0050.00918.28
7.1.330.0030.01016.01
7.1.320.0030.01016.04
7.1.310.0000.01716.03
7.1.300.0060.00916.10
7.1.290.0150.00015.90
7.1.280.0050.00516.05
7.1.270.0130.00015.93
7.1.260.0070.00716.10
7.1.250.0040.01115.80
7.1.200.0300.00315.35
7.1.100.0070.00718.42
7.1.70.0000.00717.45
7.1.60.0070.01519.40
7.1.50.0100.01017.04
7.1.00.0030.07722.32
7.0.200.0000.00717.03
7.0.140.0070.07022.08
7.0.60.0070.04319.82
7.0.50.0100.07717.96
7.0.40.0070.04020.26
7.0.30.0070.03720.19
7.0.20.0070.05020.27
7.0.10.0070.06020.27
7.0.00.0100.08320.09
5.6.280.0100.06721.00
5.6.210.0100.05320.50
5.6.200.0130.07018.27
5.6.190.0070.06320.64
5.6.180.0330.07020.61
5.6.170.0300.07320.47
5.6.160.0100.07720.48
5.6.150.0030.03718.28
5.6.140.0030.05318.18
5.6.130.0130.06018.11
5.6.120.0130.04321.05
5.6.110.0170.05020.97
5.6.100.0130.06321.01
5.6.90.0200.07021.04
5.6.80.0070.05020.36
5.5.350.4100.04020.40
5.5.340.0070.05318.09
5.5.330.0100.07720.25
5.5.320.0270.07320.31
5.5.310.0270.05020.24
5.5.300.0130.06317.98
5.5.290.0170.04718.08
5.5.280.0100.07720.89
5.5.270.0100.06020.76
5.5.260.0000.04320.89
5.5.250.0100.06020.69
5.5.240.0030.08020.26
5.4.450.0130.05019.42
5.4.440.0370.05719.45
5.4.430.0230.04319.32
5.4.420.0300.07019.46
5.4.410.0470.03019.41
5.4.400.0270.03719.16
5.4.390.0200.04319.24
5.4.380.0130.04019.09
5.4.370.0170.03719.22
5.4.360.0230.07018.95
5.4.350.0100.05319.22
5.4.340.0230.07019.22
5.4.320.0130.05018.84
5.4.310.0200.07319.00
5.4.300.0200.07319.14
5.4.290.0170.04719.18
5.4.280.0230.07019.15
5.4.270.0300.03319.21
5.4.260.0230.05719.30
5.4.250.0270.03718.99
5.4.240.0270.07019.21
5.4.230.0130.04719.19
5.4.220.0130.06719.17
5.4.210.0170.07019.21
5.4.200.0170.03719.30
5.4.190.0270.06019.05
5.4.180.0170.03719.08
5.4.170.0170.04719.21
5.4.160.0230.06319.17
5.4.150.0300.06719.19
5.4.140.0270.05316.42
5.4.130.0270.04716.51
5.4.120.0230.04016.38
5.4.110.0270.03316.20
5.4.100.0270.06716.45
5.4.90.0270.06716.54
5.4.80.0370.03316.18
5.4.70.0300.04016.18
5.4.60.0200.04016.53
5.4.50.0230.06716.23
5.4.40.0270.03016.53
5.4.30.0270.04016.34
5.4.20.0200.05716.42
5.4.10.0200.05016.25
5.4.00.0270.05715.90
5.3.290.0230.05314.59
5.3.280.0330.03714.73
5.3.270.0230.05714.60
5.3.260.0200.06314.82
5.3.250.0270.04014.65
5.3.240.0200.04014.61
5.3.230.0200.07714.67
5.3.220.0270.07014.57
5.3.210.0270.06314.48
5.3.200.0130.04014.53
5.3.190.0170.04714.56
5.3.180.0200.05014.46
5.3.170.0200.04314.71
5.3.160.0230.07314.53
5.3.150.0200.06314.46
5.3.140.0170.06314.45
5.3.130.0170.05714.45
5.3.120.0170.04314.69
5.3.110.0130.04014.55
5.3.100.0270.06014.03
5.3.90.0300.07014.10
5.3.80.0100.04714.04
5.3.70.0270.06314.16
5.3.60.0200.04314.15
5.3.50.0200.03713.85
5.3.40.0130.04013.96
5.3.30.0200.07314.02
5.3.20.0200.04313.70
5.3.10.0230.06013.74
5.3.00.0100.05713.57
5.2.170.0300.05012.22
5.2.160.0200.03312.22
5.2.150.0200.03012.22
5.2.140.0170.04312.22
5.2.130.0170.03312.22
5.2.120.0200.03012.22
5.2.110.0170.06012.22
5.2.100.0200.03712.22
5.2.90.0170.03012.22
5.2.80.0200.06012.22
5.2.70.0170.05312.22
5.2.60.0270.03312.22
5.2.50.0170.03712.22
5.2.40.0200.05312.22
5.2.30.0170.05312.22
5.2.20.0130.03712.22
5.2.10.0030.03312.22
5.2.00.0130.02712.22
5.1.60.0100.02712.22
5.1.50.0130.02312.22
5.1.40.0200.04712.22
5.1.30.0170.02712.22
5.1.20.0070.03312.22
5.1.10.0130.03012.22
5.1.00.0100.04012.22
5.0.50.0070.04712.22
5.0.40.0100.04012.22
5.0.30.0000.04012.22
5.0.20.0070.04712.22
5.0.10.0070.04712.22
5.0.00.0070.05312.22
4.4.90.0030.02012.22
4.4.80.0130.02312.22
4.4.70.0070.03712.22
4.4.60.0000.02012.22
4.4.50.0070.01712.22
4.4.40.0170.02312.22
4.4.30.0100.03012.22
4.4.20.0100.03712.22
4.4.10.0100.02312.22
4.4.00.0100.03012.22
4.3.110.0070.02712.22
4.3.100.0070.02312.22
4.3.90.0030.03012.22
4.3.80.0100.03012.22
4.3.70.0100.02012.22
4.3.60.0100.01712.22
4.3.50.0130.04312.22
4.3.40.0100.05012.22
4.3.30.0000.02712.22
4.3.20.0070.03712.22
4.3.10.0000.02012.22
4.3.00.0070.01712.22

preferences:
49 ms | 401 KiB | 5 Q