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 base baseball for all"; $pattern = array('/\b(base|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/i',); $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.0090.00616.75
8.3.50.0070.01418.14
8.3.40.0040.01118.61
8.3.30.0040.01118.92
8.3.20.0000.00720.16
8.3.10.0080.00021.59
8.3.00.0060.00319.51
8.2.180.0100.01318.25
8.2.170.0040.01122.96
8.2.160.0070.00720.38
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0030.00519.66
8.2.110.0090.00021.15
8.2.100.0070.00419.83
8.2.90.0000.00819.17
8.2.80.0000.00817.97
8.2.70.0030.00617.74
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0000.00820.01
8.2.30.0020.00518.07
8.2.20.0000.00817.89
8.2.10.0080.00018.05
8.2.00.0050.00317.93
8.1.280.0080.01125.92
8.1.270.0060.00318.86
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00722.45
8.1.230.0120.00017.64
8.1.220.0000.00917.74
8.1.210.0030.00518.77
8.1.200.0000.00817.48
8.1.190.0000.00817.25
8.1.180.0050.00318.10
8.1.170.0000.00920.43
8.1.160.0040.00421.88
8.1.150.0040.00418.83
8.1.140.0040.00417.56
8.1.130.0070.00017.83
8.1.120.0030.00517.53
8.1.110.0040.00417.52
8.1.100.0080.00017.46
8.1.90.0040.00417.55
8.1.80.0030.00517.42
8.1.70.0040.00417.41
8.1.60.0000.01017.69
8.1.50.0080.00017.48
8.1.40.0040.00417.52
8.1.30.0030.00617.73
8.1.20.0080.00017.73
8.1.10.0040.00417.65
8.1.00.0000.00817.57
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0050.00218.46
8.0.270.0000.00717.27
8.0.260.0000.00717.14
8.0.250.0000.00717.20
8.0.240.0000.00717.21
8.0.230.0030.00317.05
8.0.220.0000.00716.93
8.0.210.0000.00716.94
8.0.200.0060.00017.00
8.0.190.0040.00417.08
8.0.180.0050.00217.12
8.0.170.0080.00017.05
8.0.160.0000.01017.09
8.0.150.0040.00416.87
8.0.140.0070.00016.88
8.0.130.0030.00313.41
8.0.120.0030.00517.01
8.0.110.0040.00416.91
8.0.100.0080.00016.99
8.0.90.0080.00017.08
8.0.80.0060.01017.03
8.0.70.0070.00317.00
8.0.60.0040.00416.97
8.0.50.0030.00516.85
8.0.30.0100.01017.19
8.0.20.0140.01117.40
8.0.10.0040.00417.08
8.0.00.0080.01016.86
7.4.330.0020.00215.11
7.4.320.0030.00316.70
7.4.300.0030.00316.64
7.4.290.0040.00416.59
7.4.280.0000.00716.73
7.4.270.0030.00316.75
7.4.260.0050.00616.52
7.4.250.0040.00416.62
7.4.240.0000.00816.73
7.4.230.0000.00716.66
7.4.220.0060.01216.51
7.4.210.0100.00716.57
7.4.200.0000.00816.72
7.4.160.0080.00816.50
7.4.150.0040.01517.40
7.4.140.0110.00817.86
7.4.130.0120.00516.67
7.4.120.0110.00716.56
7.4.110.0140.00416.57
7.4.100.0060.01216.41
7.4.90.0210.00416.56
7.4.80.0150.00419.39
7.4.70.0130.00416.73
7.4.60.0100.00716.64
7.4.50.0050.00316.50
7.4.40.0090.00916.58
7.4.30.0150.00316.59
7.4.00.0060.01015.12
7.3.330.0050.00013.24
7.3.320.0100.00513.33
7.3.310.0000.00716.54
7.3.300.0070.00016.42
7.3.290.0100.00516.42
7.3.280.0070.01016.40
7.3.270.0140.00317.40
7.3.260.0120.00616.40
7.3.250.0080.01316.75
7.3.240.0080.00916.47
7.3.230.0100.01016.67
7.3.210.0090.00616.36
7.3.200.0070.01119.39
7.3.190.0050.01416.36
7.3.180.0130.00316.67
7.3.170.0030.01816.40
7.3.160.0060.00916.47
7.2.330.0130.00316.71
7.2.320.0070.01016.65
7.2.310.0110.00616.70
7.2.300.0100.00716.69
7.2.290.0070.01116.85
7.2.60.0130.00016.70
7.2.00.0060.00919.48
7.1.200.0060.00515.97
7.1.100.0030.00818.36
7.1.70.0000.00917.47
7.1.60.0110.01419.50
7.1.50.0040.01816.68
7.1.00.0030.07722.53
7.0.200.0570.00915.04
7.0.140.0070.05722.12
7.0.100.0000.04320.17
7.0.90.0030.03719.92
7.0.80.0070.06019.88
7.0.70.0030.05319.92
7.0.60.0130.03719.89
7.0.50.0130.03720.32
7.0.40.0030.04020.08
7.0.30.0070.04020.09
7.0.20.0100.03720.05
7.0.10.0070.04019.94
7.0.00.0030.04320.08
5.6.280.0000.07721.05
5.6.250.0130.03020.49
5.6.240.0030.04020.69
5.6.230.0070.03720.56
5.6.220.0000.04720.48
5.6.210.0100.04320.58
5.6.200.0030.03721.05
5.6.190.0100.05321.16
5.6.180.0030.03720.94
5.6.170.0070.03721.04
5.6.160.0030.06721.10
5.6.150.0000.04320.95
5.6.140.0070.03720.98
5.6.130.0070.04021.01
5.6.120.0100.03321.01
5.6.110.0000.05021.16
5.6.100.0000.04720.98
5.6.90.0030.06021.02
5.6.80.0030.04320.39
5.6.70.0030.06020.48
5.6.60.0100.07020.47
5.6.50.0100.07020.41
5.6.40.0070.03720.39
5.6.30.0070.07720.41
5.6.20.0030.05020.48
5.6.10.0100.04320.46
5.6.00.0130.06020.48
5.5.380.0000.03720.45
5.5.370.0070.06020.41
5.5.360.0070.03320.53
5.5.350.0070.03320.46
5.5.340.0030.04020.91
5.5.330.0100.04320.91
5.5.320.0030.04020.88
5.5.310.0070.03020.79
5.5.300.0000.04320.85
5.5.290.0070.03720.82
5.5.280.0070.04020.73
5.5.270.0000.04320.89
5.5.260.0100.03720.75
5.5.250.0070.03720.54
5.5.240.0100.07720.15
5.5.230.0070.06320.23
5.5.220.0000.08319.98
5.5.210.0200.05720.29
5.5.200.0070.05020.12
5.5.190.0030.04720.22
5.5.180.0130.04320.22
5.5.160.0030.05720.23
5.5.150.0200.04020.23
5.5.140.0100.07720.23
5.5.130.0030.08320.12
5.5.120.0070.06320.21
5.5.110.0170.04319.98
5.5.100.0030.04320.01
5.5.90.0030.04320.04
5.5.80.0000.06320.00
5.5.70.0000.07020.04
5.5.60.0070.05720.08
5.5.50.0100.04320.15
5.5.40.0100.06320.10
5.5.30.0100.07719.98
5.5.20.0130.05720.09
5.5.10.0070.05020.06
5.5.00.0070.04719.99
5.4.450.0030.04019.45
5.4.440.0030.04319.30
5.4.430.0030.03719.40
5.4.420.0130.03019.35
5.4.410.0070.05319.16
5.4.400.0100.06319.12
5.4.390.0030.07719.16
5.4.380.0030.06718.90
5.4.370.0100.03319.05
5.4.360.0130.03019.07
5.4.350.0100.04719.00
5.4.340.0100.08018.96
5.4.320.0170.06719.09
5.4.310.0070.04318.98
5.4.300.0100.06019.02
5.4.290.0070.08019.09
5.4.280.0030.08319.07
5.4.270.0030.07318.94
5.4.260.0170.07019.12
5.4.250.0000.06718.95
5.4.240.0070.04019.11
5.4.230.0170.07319.08
5.4.220.0070.04319.04
5.4.210.0030.06719.05
5.4.200.0100.05718.89
5.4.190.0100.06318.89
5.4.180.0130.06719.11
5.4.170.0200.06319.13
5.4.160.0100.07319.01
5.4.150.0000.05719.08
5.4.140.0170.06316.29
5.4.130.0030.08016.42
5.4.120.0130.06716.37
5.4.110.0030.07316.48
5.4.100.0030.06016.31
5.4.90.0030.04316.29
5.4.80.0070.07316.24
5.4.70.0030.07316.31
5.4.60.0070.06316.24
5.4.50.0030.07716.36
5.4.40.0100.06716.41
5.4.30.0030.06716.27
5.4.20.0000.03716.27
5.4.10.0070.05316.21
5.4.00.0070.06015.79
5.3.290.0070.08014.64
5.3.280.0030.06714.45
5.3.270.0100.07314.46
5.3.260.0070.08014.57
5.3.250.0030.07014.58
5.3.240.0030.07314.57
5.3.230.0170.05314.57
5.3.220.0030.06714.38
5.3.210.0070.06314.56
5.3.200.0000.06714.47
5.3.190.0030.03714.51
5.3.180.0030.07714.52
5.3.170.0100.06714.38
5.3.160.0000.05714.38
5.3.150.0100.07714.47
5.3.140.0100.05314.51
5.3.130.0130.07014.51
5.3.120.0070.05314.50
5.3.110.0100.06014.53
5.3.100.0030.04713.98
5.3.90.0030.07313.85
5.3.80.0100.07713.79
5.3.70.0070.05313.99
5.3.60.0030.04313.93
5.3.50.0030.04313.93
5.3.40.0070.07013.89
5.3.30.0130.07013.77
5.3.20.0100.07013.66
5.3.10.0070.07013.58
5.3.00.0170.04713.41
5.2.170.0070.06012.09
5.2.160.0000.06012.09
5.2.150.0070.03312.09
5.2.140.0030.06712.09
5.2.130.0070.05312.09
5.2.120.0070.05712.09
5.2.110.0100.05012.09
5.2.100.0030.05012.09
5.2.90.0070.05012.09
5.2.80.0000.04012.09
5.2.70.0030.06712.09
5.2.60.0070.05712.09
5.2.50.0000.04012.09
5.2.40.0070.03312.09
5.2.30.0100.05012.09
5.2.20.0070.04012.09
5.2.10.0030.05712.09
5.2.00.0000.05012.09
5.1.60.0030.04712.09
5.1.50.0100.05012.09
5.1.40.0030.05312.09
5.1.30.0030.04312.09
5.1.20.0030.04312.09
5.1.10.0100.04712.09
5.1.00.0100.05312.09
5.0.50.0000.03712.09
5.0.40.0100.03312.09
5.0.30.0030.03012.09
5.0.20.0100.03012.09
5.0.10.0070.03012.09
5.0.00.0000.03712.09
4.4.90.0070.02312.09
4.4.80.0000.02712.09
4.4.70.0030.02312.09
4.4.60.0000.03712.09
4.4.50.0030.03012.09
4.4.40.0000.03312.09
4.4.30.0070.03012.09
4.4.20.0000.03012.09
4.4.10.0030.02312.09
4.4.00.0070.05312.09
4.3.110.0000.03712.09
4.3.100.0000.01712.09
4.3.90.0030.02012.09
4.3.80.0000.06012.09
4.3.70.0030.01712.09
4.3.60.0030.01312.09
4.3.50.0070.01712.09
4.3.40.0000.04312.09
4.3.30.0000.03712.09
4.3.20.0000.03012.09
4.3.10.0000.02012.09
4.3.00.0030.03312.09

preferences:
44.54 ms | 400 KiB | 5 Q