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.0080.00616.63
8.3.50.0130.00522.10
8.3.40.0060.01218.98
8.3.30.0070.00718.93
8.3.20.0040.00420.20
8.3.10.0040.00423.59
8.3.00.0070.00319.38
8.2.180.0060.00916.88
8.2.170.0080.00622.96
8.2.160.0170.00020.35
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0120.00326.16
8.2.120.0020.00522.08
8.2.110.0120.00622.08
8.2.100.0040.00718.03
8.2.90.0040.00419.23
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0000.00717.93
8.2.50.0060.00318.07
8.2.40.0040.00419.76
8.2.30.0000.00718.07
8.2.20.0000.00717.88
8.2.10.0000.00718.14
8.2.00.0000.00817.99
8.1.280.0070.01425.92
8.1.270.0000.00822.05
8.1.260.0030.00526.35
8.1.250.0030.00628.09
8.1.240.0040.00423.77
8.1.230.0070.00319.14
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0070.00417.35
8.1.190.0000.00817.36
8.1.180.0040.00418.10
8.1.170.0040.00418.62
8.1.160.0050.00221.96
8.1.150.0000.00818.75
8.1.140.0040.00417.48
8.1.130.0030.00317.90
8.1.120.0070.00017.43
8.1.110.0000.00817.45
8.1.100.0000.00717.46
8.1.90.0040.00417.43
8.1.80.0030.00417.50
8.1.70.0000.00617.44
8.1.60.0030.00517.66
8.1.50.0000.00717.57
8.1.40.0000.00717.64
8.1.30.0060.00317.58
8.1.20.0050.00317.69
8.1.10.0040.00417.53
8.1.00.0080.00017.62
8.0.300.0030.00520.84
8.0.290.0000.00717.14
8.0.280.0000.00718.45
8.0.270.0030.00517.18
8.0.260.0030.00317.17
8.0.250.0000.00817.14
8.0.240.0040.00417.07
8.0.230.0000.00716.93
8.0.220.0030.00316.95
8.0.210.0030.00316.94
8.0.200.0060.00016.89
8.0.190.0000.01017.04
8.0.180.0000.00716.86
8.0.170.0000.00916.96
8.0.160.0040.00416.96
8.0.150.0040.00416.81
8.0.140.0040.00416.87
8.0.130.0000.00513.35
8.0.120.0000.00816.91
8.0.110.0040.00416.92
8.0.100.0040.00416.95
8.0.90.0070.00016.86
8.0.80.0060.00916.91
8.0.70.0040.00417.05
8.0.60.0000.00716.94
8.0.50.0050.00316.95
8.0.30.0120.00617.19
8.0.20.0120.00617.40
8.0.10.0030.00617.11
8.0.00.0060.01516.80
7.4.330.0000.00615.00
7.4.320.0060.00316.77
7.4.300.0000.00616.63
7.4.290.0030.00316.73
7.4.280.0000.00716.68
7.4.270.0000.00816.71
7.4.260.0030.00316.63
7.4.250.0000.00716.58
7.4.240.0060.00216.72
7.4.230.0050.00216.61
7.4.220.0100.00716.75
7.4.210.0060.00916.82
7.4.200.0030.00316.75
7.4.190.0000.00916.84
7.4.160.0040.01216.47
7.4.150.0140.00417.40
7.4.140.0110.00617.86
7.4.130.0110.01116.69
7.4.120.0060.01216.56
7.4.110.0060.01116.71
7.4.100.0110.00816.66
7.4.90.0070.01116.61
7.4.80.0150.00319.39
7.4.70.0060.01116.72
7.4.60.0110.00616.61
7.4.50.0030.00316.62
7.4.40.0140.00816.68
7.4.30.0130.00316.60
7.4.00.0070.01015.05
7.3.330.0050.00013.17
7.3.320.0030.00313.04
7.3.310.0040.00416.21
7.3.300.0000.00716.25
7.3.290.0140.00016.28
7.3.280.0090.00816.31
7.3.270.0090.00917.40
7.3.260.0100.00616.64
7.3.250.0140.00616.41
7.3.240.0060.01516.43
7.3.230.0150.00516.43
7.3.210.0080.00916.41
7.3.200.0150.00819.39
7.3.190.0000.01716.63
7.3.180.0100.00716.50
7.3.170.0100.00616.56
7.3.160.0050.01116.61
7.3.120.0030.01215.06
7.3.110.0050.00914.86
7.3.100.0060.00615.08
7.3.90.0100.00714.88
7.3.80.0100.00514.98
7.3.70.0070.00814.86
7.3.60.0050.00414.79
7.3.50.0060.00514.94
7.3.40.0020.00814.82
7.3.30.0060.00614.81
7.3.20.0000.01316.61
7.3.10.0060.00816.84
7.3.00.0050.00916.81
7.2.330.0050.01116.61
7.2.320.0030.01516.72
7.2.310.0130.01016.59
7.2.300.0060.01016.71
7.2.290.0060.01516.48
7.2.250.0090.00915.09
7.2.240.0110.00815.20
7.2.230.0040.00914.93
7.2.220.0040.00715.22
7.2.210.0070.00715.04
7.2.200.0040.01115.05
7.2.190.0070.00715.07
7.2.180.0070.00715.21
7.2.170.0070.00615.00
7.2.00.0040.01119.56
7.1.330.0050.00915.71
7.1.320.0100.00516.00
7.1.310.0030.00915.87
7.1.300.0060.00815.61
7.1.290.0070.00615.95
7.1.280.0020.01015.84
7.1.270.0080.00515.91
7.1.260.0030.01415.83
7.1.100.0060.00318.11
7.1.70.0000.00817.33
7.1.60.0060.01919.46
7.1.50.0090.00916.99
7.1.00.0030.07722.59
7.0.200.0030.00316.86
7.0.140.0030.07322.08
7.0.60.0030.04019.88
7.0.50.0030.09017.70
7.0.40.0070.04020.05
7.0.30.0330.04720.35
7.0.20.0370.07020.22
7.0.10.0000.07720.10
7.0.00.0030.05020.18
5.6.280.0100.06720.98
5.6.210.0030.08020.62
5.6.200.0000.04718.21
5.6.190.0100.03720.27
5.6.180.0330.06720.45
5.6.170.0100.04720.50
5.6.160.0100.03720.51
5.6.150.0100.08018.23
5.6.140.0130.07018.18
5.6.130.0070.08718.21
5.6.120.0170.07021.01
5.6.110.0030.06020.88
5.6.100.0100.07720.97
5.6.90.0130.06720.97
5.6.80.0070.06320.53
5.5.350.2970.04020.38
5.5.340.0000.05018.02
5.5.330.0000.09020.12
5.5.320.0230.06320.20
5.5.310.0300.07320.50
5.5.300.0070.08317.90
5.5.290.0130.06317.95
5.5.280.0070.09020.76
5.5.270.0130.07320.86
5.5.260.0070.08020.86
5.5.250.0130.07720.54
5.5.240.0070.07720.14
5.4.450.0030.06319.58
5.4.440.0200.04719.58
5.4.430.0100.07019.57
5.4.420.0100.05719.61
5.4.410.0130.07019.14
5.4.400.0130.05319.27
5.4.390.0130.05319.15
5.4.380.0170.05318.68
5.4.370.0200.05018.68
5.4.360.0200.06718.72
5.4.350.0230.05018.49
5.4.340.0100.05718.72
5.4.320.0080.03412.45
5.4.310.0070.04912.45
5.4.300.0060.05212.45
5.4.290.0060.05812.45
5.4.280.0100.04912.34
5.4.270.0100.03912.34
5.4.260.0060.04212.35
5.4.250.0080.03912.35
5.4.240.0070.03812.35
5.4.230.0060.04112.34
5.4.220.0070.03912.34
5.4.210.0080.03912.34
5.4.200.0070.04612.34
5.4.190.0030.04512.34
5.4.180.0070.04312.33
5.4.170.0090.03712.34
5.4.160.0080.04012.34
5.4.150.0080.05012.34
5.4.140.0100.04512.02
5.4.130.0060.04312.01
5.4.120.0040.05111.97
5.4.110.0070.04511.96
5.4.100.0130.04111.96
5.4.90.0070.04911.96
5.4.80.0080.05311.96
5.4.70.0140.04111.96
5.4.60.0090.04711.96
5.4.50.0120.04511.96
5.4.40.0060.05111.95
5.4.30.0080.04511.95
5.4.20.0050.04911.94
5.4.10.0100.04411.95
5.4.00.0060.04911.44
5.3.290.0030.04712.80
5.3.280.0070.05312.71
5.3.270.0050.05512.72
5.3.260.0080.05312.72
5.3.250.0070.05212.72
5.3.240.0070.05112.72
5.3.230.0080.04912.71
5.3.220.0090.05012.68
5.3.210.0090.05212.68
5.3.200.0040.05312.68
5.3.190.0070.04812.68
5.3.180.0090.04812.67
5.3.170.0100.04912.67
5.3.160.0040.05312.67
5.3.150.0040.05412.67
5.3.140.0100.04612.66
5.3.130.0080.05412.66
5.3.120.0070.05312.66
5.3.110.0100.05012.65
5.3.100.0080.04712.12
5.3.90.0090.04712.09
5.3.80.0090.04612.07
5.3.70.0050.05012.08
5.3.60.0060.04912.07
5.3.50.0090.04812.00
5.3.40.0070.04812.00
5.3.30.0070.04811.95
5.3.20.0070.04711.72
5.3.10.0050.05011.69
5.3.00.0060.05011.68
5.2.170.0060.0419.18
5.2.160.0060.0399.18
5.2.150.0060.0499.18
5.2.140.0050.0309.18
5.2.130.0030.0319.14
5.2.120.0060.0279.13
5.2.110.0040.0309.14
5.2.100.0060.0319.14
5.2.90.0020.0319.14
5.2.80.0020.0339.13
5.2.70.0030.0349.14
5.2.60.0030.0349.09
5.2.50.0080.0359.05
5.2.40.0070.0299.04
5.2.30.0070.0399.02
5.2.20.0080.0379.00
5.2.10.0060.0388.92
5.2.00.0070.0468.77
5.1.60.0020.0288.06
5.1.50.0060.0248.05
5.1.40.0040.0278.04
5.1.30.0050.0278.39
5.1.20.0040.0298.41
5.1.10.0050.0278.14
5.1.00.0050.0268.15
5.0.50.0060.0196.61
5.0.40.0040.0196.48
5.0.30.0050.0316.29
5.0.20.0050.0186.26
5.0.10.0050.0186.24
5.0.00.0020.0336.23
4.4.90.0030.0274.78
4.4.80.0050.0274.76
4.4.70.0080.0184.75
4.4.60.0060.0184.75
4.4.50.0020.0234.77
4.4.40.0020.0274.71
4.4.30.0030.0164.76
4.4.20.0040.0214.85
4.4.10.0030.0174.85
4.4.00.0020.0274.76
4.3.110.0050.0214.67
4.3.100.0050.0194.66
4.3.90.0010.0184.63
4.3.80.0060.0254.58
4.3.70.0040.0154.63
4.3.60.0060.0214.63
4.3.50.0040.0234.63
4.3.40.0050.0334.54
4.3.30.0050.0213.28
4.3.20.0060.0183.25
4.3.10.0060.0193.21
4.3.00.0000.0308.13

preferences:
25.88 ms | 401 KiB | 5 Q