3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = array("@[а-я]@"); $r = array("*"); $fam = "Перегудов"; $fam = preg_replace("@^.@e", '', $fam); $fam = preg_replace("@.@e", '*', $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.0080.00616.50
8.3.50.0090.00922.02
8.3.40.0040.01118.59
8.3.30.0100.00719.05
8.3.20.0040.00420.19
8.3.10.0040.00423.66
8.3.00.0130.00017.24
8.2.180.0150.00018.43
8.2.170.0040.01122.96
8.2.160.0100.00320.32
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00022.18
8.2.110.0060.00319.09
8.2.100.0090.00317.75
8.2.90.0050.00318.86
8.2.80.0060.00317.97
8.2.70.0080.00017.49
8.2.60.0040.00418.04
8.2.50.0060.00318.07
8.2.40.0000.00819.75
8.2.30.0050.00319.69
8.2.20.0030.00517.60
8.2.10.0060.00318.06
8.2.00.0040.00417.65
8.1.280.0100.00725.92
8.1.270.0030.00723.88
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00722.18
8.1.230.0090.00318.87
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.01017.23
8.1.190.0040.00417.10
8.1.180.0030.00718.10
8.1.170.0040.00418.53
8.1.160.0000.00821.95
8.1.150.0040.00418.44
8.1.140.0040.00417.43
8.1.130.0030.00317.82
8.1.120.0000.00717.33
8.1.110.0000.00817.30
8.1.100.0000.00817.39
8.1.90.0040.00417.38
8.1.80.0070.00017.43
8.1.70.0000.00717.34
8.1.60.0070.00317.55
8.1.50.0030.00617.38
8.1.40.0000.00717.33
8.1.30.0050.00217.48
8.1.20.0050.00217.51
8.1.10.0040.00417.30
8.1.00.0070.00017.41
8.0.300.0070.00020.09
8.0.290.0100.00016.63
8.0.280.0030.00318.39
8.0.270.0000.00717.24
8.0.260.0000.00717.19
8.0.250.0030.00316.95
8.0.240.0000.00816.99
8.0.230.0000.00716.82
8.0.220.0070.00016.91
8.0.210.0030.00316.77
8.0.200.0000.00616.90
8.0.190.0100.00716.57
8.0.180.0080.00016.96
8.0.170.0040.00416.80
8.0.160.0000.00716.95
8.0.150.0070.00016.83
8.0.140.0070.00016.86
8.0.130.0030.00313.28
8.0.120.0040.00416.77
8.0.110.0050.00316.79
8.0.100.0080.00016.76
8.0.90.0030.00516.77
8.0.80.0090.00616.84
8.0.70.0030.00616.77
8.0.60.0040.00416.79
8.0.50.0030.00516.71
8.0.30.0090.00916.99
8.0.20.0100.00917.40
8.0.10.0000.00716.83
8.0.00.0120.00716.56
7.4.330.0070.00015.00
7.4.320.0040.00416.56
7.4.300.0000.00616.45
7.4.290.0040.00416.34
7.4.280.0050.00316.55
7.4.270.0030.00316.43
7.4.260.0050.00316.55
7.4.250.0020.00516.41
7.4.240.0040.00416.53
7.4.230.0030.00316.55
7.4.220.0090.00916.57
7.4.210.0060.01016.52
7.4.200.0000.00716.42
7.4.190.0030.00316.38
7.4.160.0060.00916.26
7.4.150.0100.00717.40
7.4.140.0110.00617.86
7.4.130.0100.01116.33
7.4.120.0120.00616.42
7.4.110.0110.01116.50
7.4.100.0150.00316.48
7.4.90.0070.01016.23
7.4.80.0060.01619.39
7.4.70.0070.01816.47
7.4.60.0130.00316.20
7.4.50.0090.00016.63
7.4.40.0060.01216.26
7.4.30.0040.01216.41
7.4.00.0070.01214.99
7.3.330.0000.00613.12
7.3.320.0050.00013.04
7.3.310.0070.00016.07
7.3.300.0070.00016.15
7.3.290.0000.01416.20
7.3.280.0140.00316.20
7.3.270.0120.00617.40
7.3.260.0090.00916.61
7.3.250.0050.01516.32
7.3.240.0060.00916.19
7.3.230.0130.00316.43
7.3.210.0070.01416.47
7.3.200.0060.01619.39
7.3.190.0120.01216.27
7.3.180.0060.00916.50
7.3.170.0080.00816.29
7.3.160.0160.00616.23
7.3.120.0050.00814.84
7.3.110.0070.01414.86
7.3.100.0070.00714.79
7.3.90.0120.00014.77
7.3.80.0090.00315.00
7.3.70.0000.01414.73
7.3.60.0090.00914.77
7.3.50.0080.00314.72
7.3.40.0090.00614.52
7.3.30.0100.00714.73
7.3.20.0100.00616.64
7.3.10.0090.00016.66
7.3.00.0070.01016.58
7.2.330.0080.01116.85
7.2.320.0060.01016.67
7.2.310.0080.01116.50
7.2.300.0060.01216.68
7.2.290.0110.00916.48
7.2.250.0030.00914.88
7.2.240.0000.01814.98
7.2.230.0060.00315.13
7.2.220.0070.01015.05
7.2.210.0060.00615.01
7.2.200.0070.01314.96
7.2.190.0050.00514.95
7.2.180.0100.00715.02
7.2.170.0030.01614.88
7.2.60.0120.00017.05
7.2.00.0070.01119.52
7.1.330.0060.00916.00
7.1.320.0090.00915.75
7.1.310.0060.01015.96
7.1.300.0000.01415.99
7.1.290.0060.00615.99
7.1.280.0110.00716.09
7.1.270.0070.01015.80
7.1.260.0070.00715.84
7.1.200.0060.00915.80
7.1.100.0070.00718.32
7.1.70.0070.00017.01
7.1.60.0070.01119.46
7.1.50.0070.01416.76
7.1.00.0070.07322.32
7.0.200.0000.00716.70
7.0.140.0030.07322.00
7.0.60.0070.03720.01
7.0.50.0070.08017.89
7.0.40.0170.07020.10
7.0.30.0170.05020.22
7.0.20.0470.06020.03
7.0.10.0100.09020.32
7.0.00.0070.08720.10
5.6.280.0030.07320.84
5.6.210.0100.05720.63
5.6.200.0030.05318.29
5.6.190.0070.04720.48
5.6.180.0330.07320.56
5.6.170.0200.07320.53
5.6.160.0100.07720.55
5.6.150.0070.06318.27
5.6.140.0100.07318.18
5.6.130.0070.08018.27
5.6.120.0130.07720.96
5.6.110.0100.06321.11
5.6.100.0070.03720.98
5.6.90.0170.07321.12
5.6.80.0070.04320.53
5.5.350.0170.04020.40
5.5.340.0000.04017.99
5.5.330.0030.04720.33
5.5.320.0070.03720.27
5.5.310.0330.05020.34
5.5.300.0070.05317.95
5.5.290.0100.07717.98
5.5.280.0100.03320.86
5.5.270.0030.09020.64
5.5.260.0200.07020.96
5.5.250.0100.06020.45
5.5.240.0030.07720.34
5.4.450.0130.05719.59
5.4.440.0100.07019.19
5.4.430.0170.05319.57
5.4.420.0130.05319.28
5.4.410.0200.04319.29
5.4.400.0030.05718.87
5.4.390.0200.04318.86
5.4.380.0230.04318.63
5.4.370.0170.05318.75
5.4.360.0170.05018.86
5.4.350.0130.05718.56
5.4.340.0100.05718.53
5.4.320.0050.04312.50
5.4.310.0110.04412.50
5.4.300.0080.03812.50
5.4.290.0070.05312.50
5.4.280.0100.04912.39
5.4.270.0090.04812.39
5.4.260.0030.05412.39
5.4.250.0090.05312.39
5.4.240.0090.05512.39
5.4.230.0060.05512.38
5.4.220.0090.04612.39
5.4.210.0060.05212.38
5.4.200.0090.05512.38
5.4.190.0110.04912.38
5.4.180.0090.05112.38
5.4.170.0080.04412.38
5.4.160.0090.04612.38
5.4.150.0100.03712.38
5.4.140.0050.04912.07
5.4.130.0070.04412.05
5.4.120.0140.04212.02
5.4.110.0090.05012.01
5.4.100.0060.04812.01
5.4.90.0070.04912.01
5.4.80.0080.05012.00
5.4.70.0070.04912.01
5.4.60.0080.05112.01
5.4.50.0060.05412.01
5.4.40.0090.05011.99
5.4.30.0050.05011.99
5.4.20.0090.05311.99
5.4.10.0100.05111.99
5.4.00.0070.05211.48
5.3.290.0080.05012.80
5.3.280.0100.05012.71
5.3.270.0070.05612.73
5.3.260.0100.05512.72
5.3.250.0060.05812.72
5.3.240.0110.05312.72
5.3.230.0140.05112.71
5.3.220.0070.05612.68
5.3.210.0100.06112.68
5.3.200.0080.05612.68
5.3.190.0090.05312.68
5.3.180.0070.05812.67
5.3.170.0090.05512.67
5.3.160.0090.05412.67
5.3.150.0070.05612.67
5.3.140.0130.06412.66
5.3.130.0110.06612.66
5.3.120.0090.08712.66
5.3.110.0090.06112.66
5.3.100.0080.05512.12
5.3.90.0080.06012.08
5.3.80.0120.05312.07
5.3.70.0070.05612.08
5.3.60.0130.04912.07
5.3.50.0070.05512.00
5.3.40.0080.05712.00
5.3.30.0080.05511.95
5.3.20.0090.05011.73
5.3.10.0150.04711.70
5.3.00.0110.05311.69
5.2.170.0040.0509.19
5.2.160.0090.0439.19
5.2.150.0060.0479.19
5.2.140.0080.0469.19
5.2.130.0080.0429.14
5.2.120.0090.0439.15
5.2.110.0070.0439.15
5.2.100.0060.0459.14
5.2.90.0060.0469.14
5.2.80.0060.0479.14
5.2.70.0060.0479.14
5.2.60.0130.0429.10
5.2.50.0090.0529.07
5.2.40.0180.0389.05
5.2.30.0090.0479.02
5.2.20.0100.0389.01
5.2.10.0110.0388.94
5.2.00.0120.0548.81
5.1.60.0100.0448.10
5.1.50.0050.0368.10
5.1.40.0090.0308.07
5.1.30.0050.0308.42
5.1.20.0050.0308.45
5.1.10.0040.0318.17
5.1.00.0050.0268.15
5.0.50.0050.0266.65
5.0.40.0040.0316.52
5.0.30.0090.0356.32
5.0.20.0040.0286.29
5.0.10.0040.0286.27
5.0.00.0070.0366.26
4.4.90.0080.0174.78
4.4.80.0040.0224.75
4.4.70.0030.0254.75
4.4.60.0060.0234.76
4.4.50.0070.0214.77
4.4.40.0020.0354.70
4.4.30.0030.0254.76
4.4.20.0060.0244.84
4.4.10.0050.0234.85
4.4.00.0040.0354.76
4.3.110.0020.0194.67
4.3.100.0040.0244.67
4.3.90.0080.0204.64
4.3.80.0050.0344.58
4.3.70.0070.0224.63
4.3.60.0050.0234.63
4.3.50.0060.0224.63
4.3.40.0030.0354.54
4.3.30.0110.0273.28
4.3.20.0070.0223.26
4.3.10.0040.0223.22
4.3.00.0030.0208.14

preferences:
37.93 ms | 401 KiB | 5 Q