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.0090.00616.50
8.3.50.0140.00922.07
8.3.40.0110.00418.71
8.3.30.0030.01019.05
8.3.20.0040.00420.34
8.3.10.0080.00023.37
8.3.00.0080.00417.75
8.2.180.0110.00716.88
8.2.170.0090.00622.96
8.2.160.0130.00320.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0150.00326.16
8.2.120.0000.00822.18
8.2.110.0100.00022.25
8.2.100.0080.00318.16
8.2.90.0040.00819.21
8.2.80.0050.00317.97
8.2.70.0090.00017.75
8.2.60.0080.00017.93
8.2.50.0080.00418.07
8.2.40.0050.00319.93
8.2.30.0000.00819.82
8.2.20.0030.00617.75
8.2.10.0080.00018.02
8.2.00.0070.00017.79
8.1.280.0070.00725.92
8.1.270.0080.00023.79
8.1.260.0100.01026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.71
8.1.230.0100.00019.00
8.1.220.0000.00817.79
8.1.210.0030.00618.77
8.1.200.0040.00417.22
8.1.190.0060.00317.25
8.1.180.0000.00919.13
8.1.170.0030.00518.63
8.1.160.0000.00721.88
8.1.150.0040.00418.59
8.1.140.0040.00417.44
8.1.130.0030.00317.88
8.1.120.0040.00417.54
8.1.110.0030.00517.45
8.1.100.0050.00317.41
8.1.90.0040.00417.51
8.1.80.0020.00517.56
8.1.70.0000.00817.44
8.1.60.0030.00717.56
8.1.50.0040.00417.48
8.1.40.0040.00417.48
8.1.30.0080.00017.60
8.1.20.0070.00017.63
8.1.10.0030.00517.62
8.1.00.0020.00517.50
8.0.300.0000.00718.77
8.0.290.0070.00017.18
8.0.280.0070.00018.45
8.0.270.0000.00717.23
8.0.260.0000.00617.20
8.0.250.0030.00317.16
8.0.240.0000.00817.00
8.0.230.0000.00616.87
8.0.220.0050.00216.95
8.0.210.0070.00016.80
8.0.200.0030.00316.95
8.0.190.0040.00517.05
8.0.180.0040.00416.96
8.0.170.0040.00416.95
8.0.160.0050.00317.00
8.0.150.0070.00016.94
8.0.140.0040.00416.84
8.0.130.0050.00013.43
8.0.120.0050.00316.91
8.0.110.0030.00516.87
8.0.100.0040.00416.87
8.0.90.0070.00017.01
8.0.80.0110.01017.02
8.0.70.0090.00016.78
8.0.60.0000.00716.93
8.0.50.0000.00716.80
8.0.30.0110.01217.21
8.0.20.0120.00717.40
8.0.10.0000.00817.11
8.0.00.0120.01016.70
7.4.330.0070.00015.00
7.4.320.0040.00416.74
7.4.300.0030.00316.66
7.4.290.0000.00716.74
7.4.280.0030.00416.58
7.4.270.0050.00316.66
7.4.260.0030.00316.71
7.4.250.0000.00716.69
7.4.240.0050.00216.70
7.4.230.0050.00316.44
7.4.220.0110.00716.71
7.4.210.0090.00916.70
7.4.200.0000.00716.82
7.4.190.0030.00316.68
7.4.160.0160.00016.55
7.4.150.0130.00417.40
7.4.140.0120.00917.86
7.4.130.0090.00616.60
7.4.120.0110.00816.54
7.4.110.0070.01016.79
7.4.100.0120.00616.81
7.4.90.0130.01016.66
7.4.80.0130.00619.39
7.4.70.0220.00316.63
7.4.60.0130.00316.71
7.4.50.0020.00216.58
7.4.40.0150.00316.32
7.4.30.0070.01416.61
7.4.00.0030.01514.98
7.3.330.0000.00613.17
7.3.320.0070.00013.05
7.3.310.0040.00416.21
7.3.300.0070.00016.22
7.3.290.0100.01016.32
7.3.280.0120.00716.39
7.3.270.0090.00617.40
7.3.260.0100.00716.51
7.3.250.0110.00816.35
7.3.240.0070.01016.31
7.3.230.0110.01116.43
7.3.210.0110.00716.50
7.3.200.0150.00619.39
7.3.190.0040.01516.23
7.3.180.0110.00816.36
7.3.170.0000.01416.43
7.3.160.0100.00716.77
7.3.120.0030.00714.81
7.2.330.0120.00616.77
7.2.320.0090.00916.66
7.2.310.0060.01216.50
7.2.300.0080.00816.88
7.2.290.0110.00516.61
7.2.60.0070.00716.80
7.2.00.0100.01319.43
7.1.200.0140.00015.64
7.1.100.0060.00818.39
7.1.70.0000.01017.39
7.1.60.0130.01019.46
7.1.50.0030.02217.18
7.1.00.0100.07022.34
7.0.200.0030.00316.61
7.0.140.0030.07322.18
7.0.60.0130.03719.79
7.0.50.0070.08017.88
7.0.40.0130.04319.92
7.0.30.0130.08020.01
7.0.20.0300.04020.15
7.0.10.0000.04720.18
7.0.00.0000.04720.05
5.6.280.0000.07721.09
5.6.210.0070.08020.64
5.6.200.0170.07718.17
5.6.190.0130.07320.56
5.6.180.0300.07720.77
5.6.170.0230.05720.41
5.6.160.0070.08320.46
5.6.150.0030.08018.11
5.6.140.0100.04718.20
5.6.130.0000.08718.15
5.6.120.0130.08021.03
5.6.110.0030.07321.06
5.6.100.0130.07721.10
5.6.90.0100.06320.96
5.6.80.0030.07020.39
5.5.350.4230.04320.43
5.5.340.0030.04317.89
5.5.330.0070.07020.16
5.5.320.0200.07720.22
5.5.310.0330.06720.32
5.5.300.0130.07317.97
5.5.290.0100.08317.92
5.5.280.0070.04020.84
5.5.270.0070.06320.64
5.5.260.0100.08020.80
5.5.250.0030.08320.55
5.5.240.0170.07020.23
5.4.450.3100.04319.57
5.4.440.3870.04019.10
5.4.430.2900.03319.41
5.4.420.2800.04019.42
5.4.410.3070.04318.97
5.4.400.2400.04019.10
5.4.390.3130.03719.06
5.4.380.2330.05018.80
5.4.370.1570.03718.78
5.4.360.2130.03318.77
5.4.350.1600.03719.09
5.4.340.1770.03319.16
5.4.320.1500.03318.90
5.4.310.2270.04318.78
5.4.300.2470.03319.07
5.4.290.2070.03318.91
5.4.280.2570.04019.06
5.4.270.2300.03719.24
5.4.260.2630.04018.95
5.4.250.2730.03318.88
5.4.240.3030.03719.09
5.4.230.2570.03319.23
5.4.220.2730.04718.91
5.4.210.2830.04019.05
5.4.200.2800.03719.13
5.4.190.2530.04019.03
5.4.180.2500.03718.91
5.4.170.2600.04019.06
5.4.160.2800.04018.78
5.4.150.2400.04018.86
5.4.140.3030.03716.53
5.4.130.2570.03016.14
5.4.120.2730.03716.15
5.4.110.2570.03716.47
5.4.100.2830.03316.21
5.4.90.2470.03716.39
5.4.80.2630.03316.43
5.4.70.2800.03716.39
5.4.60.2900.03316.36
5.4.50.2800.03316.45
5.4.40.2830.03016.33
5.4.30.2570.03316.31
5.4.20.2530.03716.18
5.4.10.3070.03716.38
5.4.00.2870.03315.72
5.3.290.2700.04714.58
5.3.280.2830.04314.48
5.3.270.2470.03714.70
5.3.260.3200.05014.62
5.3.250.3430.04014.45
5.3.240.2930.04014.45
5.3.230.3030.03314.45
5.3.220.2770.03714.41
5.3.210.2800.03714.47
5.3.200.2870.04014.52
5.3.190.3500.04714.40
5.3.180.2870.04014.42
5.3.170.2630.04314.40
5.3.160.3100.03314.39
5.3.150.3000.03714.66
5.3.140.2770.03714.57
5.3.130.2800.04314.42
5.3.120.2770.03714.40
5.3.110.3230.04014.38
5.3.100.2530.04314.14
5.3.90.2400.03714.11
5.3.80.3100.03313.96
5.3.70.2730.03314.00
5.3.60.2470.03713.85
5.3.50.3300.03713.85
5.3.40.2730.03713.80
5.3.30.2730.03313.86
5.3.20.2670.04013.49
5.3.10.2930.04013.61
5.3.00.3270.03013.58
5.2.170.2130.03312.54
5.2.160.2800.02012.54
5.2.150.1970.03012.54
5.2.140.2270.03012.54
5.2.130.2470.03012.54
5.2.120.2730.02712.54
5.2.110.2300.03012.54
5.2.100.2770.02712.54
5.2.90.2770.02712.54
5.2.80.2270.02712.54
5.2.70.2230.03312.54
5.2.60.2300.03312.54
5.2.50.2030.03012.54
5.2.40.2200.03712.54
5.2.30.2030.03312.54
5.2.20.1970.03012.54
5.2.10.2300.03012.54
5.2.00.2100.02012.54
5.1.60.1930.02712.54
5.1.50.2000.02312.54
5.1.40.2070.02312.54
5.1.30.2370.02012.54
5.1.20.2330.02012.54
5.1.10.1500.02712.54
5.1.00.1700.03012.54
5.0.50.1230.02712.54
5.0.40.1000.02312.54
5.0.30.1230.03712.54
5.0.20.1000.02012.54
5.0.10.1100.02012.54
5.0.00.1500.02312.54
4.4.90.1000.01312.54
4.4.80.0930.02012.54
4.4.70.0770.01312.54
4.4.60.1000.01712.54
4.4.50.0800.01712.54
4.4.40.0930.03312.54
4.4.30.0670.02012.54
4.4.20.0600.02312.54
4.4.10.0900.02012.54
4.4.00.0700.03012.54
4.3.110.0670.02012.54
4.3.100.0230.01712.54
4.3.90.0270.02012.54
4.3.80.0370.03712.54
4.3.70.0600.01712.54
4.3.60.0930.01712.54
4.3.50.1070.01712.54
4.3.40.1070.02712.54
4.3.30.0230.01712.54
4.3.20.0230.01712.54
4.3.10.0270.02012.54
4.3.00.0370.02312.54

preferences:
43.06 ms | 401 KiB | 5 Q