3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "meno go you to from"; $regexoo = array('to','go'); $text =str_replace($regexoo, '***', $url); echo $text; echo "<hr><br>"; $str = "first بل baseball for all"; $pattern = array('/\b(بل|all|first)\b/i',); $str = preg_replace($pattern, "FOUND", $str); echo $str; ?> <p><hr></p> <?php $atag ="على ذهب الى من طول فى يشسيشيشي مصطفى حسني where then"; $pattern = array('/\b(then|فى|على|من||طول|where)\b/u',); $atag = preg_replace($pattern, " ", $atag ); echo $atag ;

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.00716.75
8.3.50.0130.00722.07
8.3.40.0000.01518.92
8.3.30.0110.00419.22
8.3.20.0040.00420.35
8.3.10.0080.00021.82
8.3.00.0080.00019.63
8.2.180.0090.00618.34
8.2.170.0070.00722.96
8.2.160.0110.00720.16
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00419.76
8.2.110.0030.00722.36
8.2.100.0110.00018.16
8.2.90.0080.00018.22
8.2.80.0060.00317.97
8.2.70.0000.01017.75
8.2.60.0040.00418.04
8.2.50.0030.00618.07
8.2.40.0000.00820.20
8.2.30.0000.00718.02
8.2.20.0040.00418.07
8.2.10.0030.00518.31
8.2.00.0000.00817.92
8.1.280.0070.01125.92
8.1.270.0040.00418.65
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0120.00020.64
8.1.230.0080.00320.91
8.1.220.0050.00317.79
8.1.210.0000.00918.97
8.1.200.0080.00017.48
8.1.190.0040.00417.35
8.1.180.0000.00918.10
8.1.170.0030.00520.42
8.1.160.0000.00721.95
8.1.150.0040.00418.96
8.1.140.0040.00417.51
8.1.130.0000.00817.78
8.1.120.0040.00417.47
8.1.110.0060.00317.52
8.1.100.0050.00317.41
8.1.90.0000.00717.59
8.1.80.0030.00317.55
8.1.70.0040.00417.36
8.1.60.0040.00417.50
8.1.50.0000.00717.61
8.1.40.0040.00417.63
8.1.30.0040.00417.59
8.1.20.0060.00317.72
8.1.10.0040.00417.59
8.1.00.0040.00417.57
8.0.300.0080.00020.04
8.0.290.0040.00416.88
8.0.280.0030.00518.42
8.0.270.0070.00017.32
8.0.260.0000.00617.16
8.0.250.0050.00317.27
8.0.240.0000.00817.18
8.0.230.0000.00717.19
8.0.220.0070.00017.15
8.0.210.0000.00717.03
8.0.200.0030.00317.18
8.0.190.0040.00417.18
8.0.180.0050.00217.05
8.0.170.0060.00317.03
8.0.160.0000.00717.06
8.0.150.0080.00017.04
8.0.140.0040.00416.99
8.0.130.0060.00013.43
8.0.120.0040.00417.09
8.0.110.0000.00717.12
8.0.100.0040.00417.13
8.0.90.0000.00817.14
8.0.80.0070.01317.06
8.0.70.0060.00317.10
8.0.60.0000.00817.02
8.0.50.0000.00716.96
8.0.30.0140.01117.28
8.0.20.0110.01117.40
8.0.10.0000.00717.19
8.0.00.0100.00716.89
7.4.330.0000.00515.18
7.4.320.0030.00316.75
7.4.300.0060.00016.73
7.4.290.0070.00016.73
7.4.280.0030.00616.55
7.4.270.0000.00716.83
7.4.260.0070.00416.70
7.4.250.0000.00716.53
7.4.240.0010.00716.72
7.4.230.0040.00416.88
7.4.220.0150.00416.71
7.4.210.0110.00416.81
7.4.200.0040.00416.88
7.4.160.0130.00316.68
7.4.150.0140.00417.40
7.4.140.0110.00817.86
7.4.130.0100.00716.67
7.4.120.0070.01016.67
7.4.110.0120.00616.86
7.4.100.0110.00716.72
7.4.90.0150.00316.78
7.4.80.0110.00819.39
7.4.70.0110.00616.52
7.4.60.0100.00716.52
7.4.50.0000.00516.41
7.4.40.0120.00616.73
7.4.30.0170.00016.75
7.4.00.0000.01514.88
7.3.330.0000.00613.25
7.3.320.0080.00813.40
7.3.310.0000.00816.50
7.3.300.0070.00016.46
7.3.290.0130.00216.42
7.3.280.0120.01016.41
7.3.270.0050.01417.40
7.3.260.0120.00616.74
7.3.250.0070.01116.52
7.3.240.0160.00316.51
7.3.230.0040.01416.39
7.3.210.0040.01216.47
7.3.200.0070.01119.39
7.3.190.0110.00616.45
7.3.180.0120.00416.31
7.3.170.0030.01316.56
7.3.160.0140.00316.72
7.2.330.0030.01516.71
7.2.320.0110.00616.63
7.2.310.0230.03116.75
7.2.300.0070.01016.76
7.2.290.0080.00816.74
7.2.60.0040.00717.12
7.2.00.0040.00719.59
7.1.200.0040.00716.00
7.1.100.0060.00918.30
7.1.70.0050.00217.37
7.1.60.0070.02019.50
7.1.50.0210.00317.28
7.1.00.0070.07322.50
7.0.200.0670.00714.89
7.0.140.0100.06722.01
7.0.60.0170.07719.84
7.0.50.0070.05717.89
7.0.40.0070.06720.25
7.0.30.0130.04720.06
7.0.20.0400.07020.23
7.0.10.0230.04720.23
7.0.00.0100.08320.22
5.6.280.0130.06021.07
5.6.210.0070.08020.49
5.6.200.0030.07718.11
5.6.190.0000.08320.60
5.6.180.0230.08720.46
5.6.170.0170.05020.49
5.6.160.0070.04020.50
5.6.150.0130.05318.15
5.6.140.0000.05718.14
5.6.130.0100.07718.21
5.6.120.0070.08321.00
5.6.110.0070.08721.11
5.6.100.0130.07721.00
5.6.90.0130.08020.95
5.6.80.0100.07320.37
5.6.70.0200.06320.34
5.5.350.0000.05320.49
5.5.340.0030.03717.95
5.5.330.0030.04720.19
5.5.320.0070.04320.29
5.5.310.0300.07020.29
5.5.300.0070.05317.89
5.5.290.0400.03717.91
5.5.280.0030.04720.98
5.5.270.0130.08020.79
5.5.260.0030.08320.89
5.5.250.0030.09020.54
5.5.240.0030.08320.07
5.4.450.0230.05319.41
5.4.440.0170.08019.25
5.4.430.0200.06019.41
5.4.420.0230.03719.23
5.4.410.0230.07019.26
5.4.400.0230.07019.16
5.4.390.0270.07319.09
5.4.380.0170.04018.81
5.4.370.0200.03718.81
5.4.360.0230.06018.81
5.4.350.0230.04019.14
5.4.340.0230.08019.22
5.4.320.0230.05319.09
5.4.310.0330.06019.08
5.4.300.0170.04319.05
5.4.290.0170.04719.24
5.4.280.0200.04319.09
5.4.270.0300.06019.24
5.4.260.0200.08319.05
5.4.250.0200.07718.80
5.4.240.0300.04318.91
5.4.230.0230.04018.88
5.4.220.0130.05319.17
5.4.210.0170.04719.13
5.4.200.0300.06019.23
5.4.190.0200.06319.23
5.4.180.0230.07018.91
5.4.170.0230.08019.13
5.4.160.0230.06019.22
5.4.150.0300.06719.11
5.4.140.0170.06316.16
5.4.130.0300.04316.34
5.4.120.0330.05316.27
5.4.110.0200.07016.08
5.4.100.0230.06316.38
5.4.90.0230.03716.43
5.4.80.0170.03316.37
5.4.70.0100.03716.37
5.4.60.0170.03316.45
5.4.50.0170.03316.33
5.4.40.0130.03316.27
5.4.30.0130.03316.03
5.4.20.0100.03716.20
5.4.10.0100.04016.17
5.4.00.0130.03315.78
5.3.290.0230.04314.61
5.3.280.0270.07014.68
5.3.270.0200.07314.65
5.3.260.0170.05014.47
5.3.250.0230.07014.45
5.3.240.0270.07014.55
5.3.230.0200.07014.53
5.3.220.0330.04014.42
5.3.210.0200.08014.65
5.3.200.0200.07314.42
5.3.190.0070.04714.51
5.3.180.0230.03014.39
5.3.170.0100.04314.51
5.3.160.0130.04314.54
5.3.150.0100.04014.50
5.3.140.0100.04014.50
5.3.130.0130.04014.49
5.3.120.0100.04014.38
5.3.110.0130.03714.55
5.3.100.0130.04013.99
5.3.90.0130.03314.11
5.3.80.0170.04314.00
5.3.70.0100.04013.85
5.3.60.0100.04013.98
5.3.50.0070.04713.84
5.3.40.0100.04713.92
5.3.30.0230.03013.68
5.3.20.0200.02713.54
5.3.10.0100.03713.53
5.3.00.0070.04013.66
5.2.170.0070.03012.22
5.2.160.0130.03012.22
5.2.150.0130.03012.22
5.2.140.0130.02312.22
5.2.130.0070.03012.22
5.2.120.0170.02712.22
5.2.110.0070.03312.22
5.2.100.0130.02712.22
5.2.90.0100.02712.22
5.2.80.0100.03012.22
5.2.70.0130.02712.22
5.2.60.0070.03012.22
5.2.50.0100.02712.22
5.2.40.0100.02312.22
5.2.30.0070.02712.22
5.2.20.0070.03012.22
5.2.10.0130.02012.22
5.2.00.0100.03012.22
5.1.60.0030.02712.22
5.1.50.0130.02012.22
5.1.40.0070.02712.22
5.1.30.0070.03012.22
5.1.20.0070.02712.22
5.1.10.0070.04712.22
5.1.00.0130.05012.22
5.0.50.0170.03712.22
5.0.40.0100.04312.22
5.0.30.0070.06712.22
5.0.20.0070.03712.22
5.0.10.0170.03012.22
5.0.00.0100.05712.22
4.4.90.0030.01712.22
4.4.80.0030.01312.22
4.4.70.0030.01712.22
4.4.60.0000.02012.22
4.4.50.0030.01712.22
4.4.40.0070.02012.22
4.4.30.0100.01312.22
4.4.20.0070.01312.22
4.4.10.0100.02312.22
4.4.00.0100.05712.22
4.3.110.0070.03012.22
4.3.100.0030.02712.22
4.3.90.0070.03012.22
4.3.80.0100.04712.22
4.3.70.0100.03312.22
4.3.60.0070.03312.22
4.3.50.0170.01712.22
4.3.40.0130.04312.22
4.3.30.0070.03312.22
4.3.20.0030.03312.22
4.3.10.0100.02012.22
4.3.00.0100.02012.22

preferences:
60.05 ms | 401 KiB | 5 Q