3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = array("/^./", "/./"); $r = array("Х", "*"); $fam = "Перегудов"; $fam = preg_replace($s, $r, $fam); //$fam = preg_replace("@^.@e", "", $fam); //$fam = preg_replace("@.@e", "-", $fam); echo $fam; //echo preg_replace($s, $r, $fam);

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.01116.63
8.3.50.0190.00221.97
8.3.40.0120.00618.89
8.3.30.0030.01018.96
8.3.20.0040.00420.30
8.3.10.0080.00023.65
8.3.00.0100.00017.63
8.2.180.0110.00416.50
8.2.170.0000.01522.96
8.2.160.0090.00920.35
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0140.00026.16
8.2.120.0070.00022.29
8.2.110.0140.00322.08
8.2.100.0060.00617.84
8.2.90.0050.00319.17
8.2.80.0080.00017.97
8.2.70.0000.00817.75
8.2.60.0000.00817.80
8.2.50.0030.00618.07
8.2.40.0040.00419.77
8.2.30.0000.00718.07
8.2.20.0050.00317.80
8.2.10.0040.00418.14
8.2.00.0070.00017.94
8.1.280.0070.01425.92
8.1.270.0080.00024.02
8.1.260.0040.00426.35
8.1.250.0090.00628.09
8.1.240.0040.00423.98
8.1.230.0030.00919.21
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0000.00917.35
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0000.00918.69
8.1.160.0000.00721.96
8.1.150.0030.00518.71
8.1.140.0040.00417.52
8.1.130.0000.00717.80
8.1.120.0040.00417.57
8.1.110.0000.00717.41
8.1.100.0000.00717.41
8.1.90.0080.00017.46
8.1.80.0040.00317.57
8.1.70.0000.00617.49
8.1.60.0000.01017.68
8.1.50.0000.00917.52
8.1.40.0080.00017.48
8.1.30.0000.00817.56
8.1.20.0000.00817.69
8.1.10.0040.00417.64
8.1.00.0000.00817.51
8.0.300.0070.00020.73
8.0.290.0070.00017.15
8.0.280.0030.00318.47
8.0.270.0040.00417.17
8.0.260.0000.00617.21
8.0.250.0030.00317.00
8.0.240.0070.00017.06
8.0.230.0070.00017.02
8.0.220.0070.00016.93
8.0.210.0000.00716.94
8.0.200.0000.00616.95
8.0.190.0070.00316.91
8.0.180.0040.00417.02
8.0.170.0020.00517.01
8.0.160.0000.00717.02
8.0.150.0040.00417.01
8.0.140.0050.00316.95
8.0.130.0000.00613.43
8.0.120.0030.00616.98
8.0.110.0070.00016.86
8.0.100.0050.00316.84
8.0.90.0080.00016.86
8.0.80.0100.01016.94
8.0.70.0080.00016.95
8.0.60.0000.00716.87
8.0.50.0070.00016.80
8.0.30.0110.00717.04
8.0.20.0110.00917.47
8.0.10.0030.00517.11
8.0.00.0070.01116.61
7.4.330.0030.00315.00
7.4.320.0020.00716.74
7.4.300.0030.00316.62
7.4.290.0070.00016.65
7.4.280.0040.00416.54
7.4.270.0030.00316.69
7.4.260.0030.00316.71
7.4.250.0070.00016.69
7.4.240.0030.00416.68
7.4.230.0040.00416.80
7.4.220.0100.00716.58
7.4.210.0050.01016.75
7.4.200.0040.00416.55
7.4.190.0000.00716.89
7.4.160.0050.01116.67
7.4.150.0090.00917.40
7.4.140.0080.01117.86
7.4.130.0030.01316.61
7.4.120.0110.00616.61
7.4.110.0030.01416.48
7.4.100.0070.01716.70
7.4.90.0090.01016.57
7.4.80.0160.00619.39
7.4.70.0080.00816.73
7.4.60.0070.01016.61
7.4.50.0000.00716.44
7.4.40.0130.00316.70
7.4.30.0120.00316.45
7.4.00.0040.01115.14
7.3.330.0000.00513.17
7.3.320.0000.00513.26
7.3.310.0040.00316.41
7.3.300.0030.00316.34
7.3.290.0060.01216.29
7.3.280.0080.00916.37
7.3.270.0100.00717.40
7.3.260.0080.00816.41
7.3.250.0080.00816.47
7.3.240.0100.00716.26
7.3.230.0130.00316.39
7.3.210.0100.00716.23
7.3.200.0070.01119.39
7.3.190.0040.01816.57
7.3.180.0170.00016.50
7.3.170.0090.00616.27
7.3.160.0150.00016.56
7.3.120.0070.00714.87
7.2.330.0070.01116.70
7.2.320.0090.00916.86
7.2.310.0120.00616.76
7.2.300.0100.00716.66
7.2.290.0060.01216.76
7.2.00.0030.00919.56
7.1.200.0170.01015.67
7.1.100.0030.01018.43
7.1.70.0030.01317.43
7.1.60.0110.01519.46
7.1.50.0000.02117.15
7.1.00.0030.07722.37
7.0.200.0040.00416.60
7.0.140.0000.05022.01
7.0.60.0100.08019.91
7.0.50.0000.04317.84
7.0.40.0030.05020.06
7.0.30.0270.08020.11
7.0.20.0200.05020.13
7.0.10.0070.08720.18
7.0.00.0100.07720.13
5.6.280.0100.06720.91
5.6.210.0070.08020.64
5.6.200.0070.07718.18
5.6.190.0000.09020.77
5.6.180.0300.04020.27
5.6.170.0230.04320.49
5.6.160.0100.08320.71
5.6.150.0200.07018.18
5.6.140.0170.04018.11
5.6.130.0070.08018.15
5.6.120.0070.06721.04
5.6.110.0030.08320.95
5.6.100.0130.05721.12
5.6.90.0030.04321.01
5.6.80.0070.07720.38
5.5.350.0230.08320.36
5.5.340.0000.04717.98
5.5.330.0130.07720.38
5.5.320.0230.04020.51
5.5.310.0470.07020.23
5.5.300.0030.03717.91
5.5.290.0000.04717.97
5.5.280.0100.07720.73
5.5.270.0070.05720.71
5.5.260.0100.08320.78
5.5.250.0070.05020.70
5.5.240.0030.03320.36
5.4.450.0300.05019.12
5.4.440.0930.03719.54
5.4.430.0170.04719.56
5.4.420.0700.02319.09
5.4.410.0330.03718.96
5.4.400.0430.03019.08
5.4.390.0330.02718.80
5.4.380.0370.06718.73
5.4.370.0470.05318.56
5.4.360.0300.05318.68
5.4.350.0500.05318.78
5.4.340.0370.05018.70
5.4.320.0090.05012.45
5.4.310.0070.03912.45
5.4.300.0130.04712.45
5.4.290.0100.06012.45
5.4.280.0120.04912.34
5.4.270.0200.08412.35
5.4.260.0100.05712.35
5.4.250.0120.05712.34
5.4.240.0130.05512.34
5.4.230.0070.06212.34
5.4.220.0090.05812.34
5.4.210.0160.04812.34
5.4.200.0120.05212.34
5.4.190.0120.05112.33
5.4.180.0120.05112.33
5.4.170.0160.07912.34
5.4.160.0090.05512.34
5.4.150.0120.05312.34
5.4.140.0050.06212.02
5.4.130.0110.05412.01
5.4.120.0140.05111.96
5.4.110.0070.05911.96
5.4.100.0090.05111.96
5.4.90.0090.04911.96
5.4.80.0070.05511.96
5.4.70.0090.05511.96
5.4.60.0120.05511.96
5.4.50.0210.10211.96
5.4.40.0070.05011.95
5.4.30.0110.05011.95
5.4.20.0090.05411.95
5.4.10.0110.05211.95
5.4.00.0140.05711.43
5.3.290.0070.05312.80
5.3.280.0090.06312.71
5.3.270.0090.06712.73
5.3.260.0100.06512.72
5.3.250.0090.05612.72
5.3.240.0080.06212.72
5.3.230.0110.05412.70
5.3.220.0110.05812.68
5.3.210.0080.06012.68
5.3.200.0110.05112.68
5.3.190.0110.04912.67
5.3.180.0060.05512.67
5.3.170.0080.05012.67
5.3.160.0100.05612.67
5.3.150.0100.05512.68
5.3.140.0140.04912.66
5.3.130.0090.05712.65
5.3.120.0110.05912.66
5.3.110.0090.06312.66
5.3.100.0120.05612.12
5.3.90.0050.06112.08
5.3.80.0100.05712.08
5.3.70.0070.05712.08
5.3.60.0040.05812.06
5.3.50.0100.05912.00
5.3.40.0380.10212.00
5.3.30.0210.06511.94
5.3.20.0070.05911.72
5.3.10.0060.06211.69
5.3.00.0080.06011.67
5.2.170.0110.0659.18
5.2.160.0080.0709.18
5.2.150.0110.0719.18
5.2.140.0060.0689.17
5.2.130.0120.0549.13
5.2.120.0120.0609.13
5.2.110.0080.0499.14
5.2.100.0090.0429.14
5.2.90.0080.0329.14
5.2.80.0050.0359.13
5.2.70.0120.0539.13
5.2.60.0150.0709.09
5.2.50.0090.0529.05
5.2.40.0190.0739.04
5.2.30.0100.0569.02
5.2.20.0250.0789.00
5.2.10.0110.0418.92
5.2.00.0060.0428.77
5.1.60.0090.0338.06
5.1.50.0150.0668.06
5.1.40.0170.0758.04
5.1.30.0080.0468.39
5.1.20.0090.0398.41
5.1.10.0180.0588.14
5.1.00.0180.0548.14
5.0.50.0130.0476.61
5.0.40.0040.0196.47
5.0.30.0080.0376.29
5.0.20.0040.0246.26
5.0.10.0110.0366.23
5.0.00.0060.0386.23
4.4.90.0080.0384.77
4.4.80.0090.0394.75
4.4.70.0050.0374.75
4.4.60.0120.0264.75
4.4.50.0020.0174.77
4.4.40.0050.0314.71
4.4.30.0040.0184.76
4.4.20.0030.0174.85
4.4.10.0050.0164.84
4.4.00.0010.0294.76
4.3.110.0030.0174.67
4.3.100.0040.0164.67
4.3.90.0030.0174.64
4.3.80.0050.0254.58
4.3.70.0030.0164.63
4.3.60.0010.0194.63
4.3.50.0030.0184.63
4.3.40.0010.0284.54
4.3.30.0020.0193.28
4.3.20.0030.0173.25
4.3.10.0020.0173.22
4.3.00.0000.01316.04

preferences:
43.33 ms | 401 KiB | 5 Q