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)/',); $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.01416.75
8.3.50.0120.00318.22
8.3.40.0060.01618.92
8.3.30.0120.00918.95
8.3.20.0050.00320.29
8.3.10.0080.00021.76
8.3.00.0100.00719.38
8.2.180.0040.01118.66
8.2.170.0040.01122.96
8.2.160.0100.00720.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0080.00019.79
8.2.110.0130.01022.32
8.2.100.0100.00318.03
8.2.90.0000.00817.86
8.2.80.0000.01117.97
8.2.70.0070.00317.75
8.2.60.0080.00017.80
8.2.50.0000.00918.07
8.2.40.0000.00818.28
8.2.30.0070.00018.00
8.2.20.0040.00417.95
8.2.10.0040.00418.02
8.2.00.0080.00017.95
8.1.280.0150.00625.92
8.1.270.0030.00619.00
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0060.00322.42
8.1.230.0000.01120.89
8.1.220.0030.00517.77
8.1.210.0040.00418.79
8.1.200.0040.00417.35
8.1.190.0090.00017.22
8.1.180.0060.00318.10
8.1.170.0040.00420.58
8.1.160.0000.00721.97
8.1.150.0030.00618.91
8.1.140.0080.00017.44
8.1.130.0000.00717.84
8.1.120.0070.00017.44
8.1.110.0000.00717.59
8.1.100.0030.00517.50
8.1.90.0070.00017.49
8.1.80.0000.00717.55
8.1.70.0030.00317.53
8.1.60.0040.00417.72
8.1.50.0080.00017.65
8.1.40.0000.00817.50
8.1.30.0040.00417.64
8.1.20.0030.00617.73
8.1.10.0000.00817.67
8.1.00.0040.00417.54
8.0.300.0040.00419.90
8.0.290.0040.00416.88
8.0.280.0000.00718.45
8.0.270.0000.00717.19
8.0.260.0030.00317.15
8.0.250.0000.00717.03
8.0.240.0030.00317.19
8.0.230.0000.00717.00
8.0.220.0070.00017.02
8.0.210.0030.00517.09
8.0.200.0030.00317.08
8.0.190.0050.00317.13
8.0.180.0030.00417.05
8.0.170.0050.00317.11
8.0.160.0030.00316.98
8.0.150.0040.00416.89
8.0.140.0000.00716.88
8.0.130.0000.00613.54
8.0.120.0050.00316.89
8.0.110.0030.00516.93
8.0.100.0020.00516.90
8.0.90.0040.00417.05
8.0.80.0130.00617.00
8.0.70.0060.00316.92
8.0.60.0020.00516.99
8.0.50.0040.00416.89
8.0.30.0130.01117.09
8.0.20.0110.01117.49
8.0.10.0040.00417.20
8.0.00.0080.01016.76
7.4.330.0000.00515.03
7.4.320.0030.00316.61
7.4.300.0030.00316.63
7.4.290.0030.00316.68
7.4.280.0030.00616.55
7.4.270.0070.00016.64
7.4.260.0000.00816.71
7.4.250.0000.00716.68
7.4.240.0020.00516.69
7.4.230.0000.00716.72
7.4.220.0140.00416.71
7.4.210.0140.00016.60
7.4.200.0000.00816.86
7.4.160.0190.00016.66
7.4.150.0130.00617.40
7.4.140.0090.00817.86
7.4.130.0140.00716.74
7.4.120.0130.00316.74
7.4.110.0030.01416.78
7.4.100.0110.00716.67
7.4.90.0030.01816.77
7.4.80.0100.01019.39
7.4.70.0120.00416.64
7.4.60.0070.01016.70
7.4.50.0030.00616.54
7.4.40.0040.01416.32
7.4.30.0150.00316.61
7.4.00.0100.00614.89
7.3.330.0030.00313.15
7.3.320.0100.00513.29
7.3.310.0030.00316.38
7.3.300.0030.00316.32
7.3.290.0070.01016.39
7.3.280.0110.00516.41
7.3.270.0050.01417.40
7.3.260.0060.01216.70
7.3.250.0080.01116.58
7.3.240.0110.00716.71
7.3.230.0090.01516.65
7.3.210.0100.00716.66
7.3.200.0120.00719.39
7.3.190.0070.01416.73
7.3.180.0060.01116.50
7.3.170.0120.00916.60
7.3.160.0030.01416.57
7.3.120.0030.01314.93
7.3.110.0030.01514.90
7.3.100.0040.01114.74
7.3.90.0030.00915.21
7.3.80.0060.00614.78
7.3.70.0030.01215.02
7.3.60.0090.00614.87
7.3.50.0110.00414.81
7.3.40.0040.00714.98
7.3.30.0060.00914.66
7.3.20.0100.00316.79
7.3.10.0000.01116.79
7.3.00.0070.00416.53
7.2.330.0180.00616.54
7.2.320.0130.00316.50
7.2.310.0210.00716.59
7.2.300.0110.00716.74
7.2.290.0140.00916.86
7.2.250.0100.01015.14
7.2.240.0070.01115.07
7.2.230.0000.01515.25
7.2.220.0030.01515.18
7.2.210.0040.00815.25
7.2.200.0030.01315.02
7.2.190.0030.01415.03
7.2.180.0130.00615.22
7.2.170.0000.00914.96
7.2.160.0100.00714.97
7.2.150.0060.00316.92
7.2.140.0030.01417.03
7.2.130.0080.00417.07
7.2.120.0100.00716.75
7.2.110.0000.01716.84
7.2.100.0070.00317.10
7.2.90.0130.00617.18
7.2.80.0080.00717.16
7.2.70.0000.01217.11
7.2.60.0060.00816.93
7.2.50.0090.00316.89
7.2.40.0060.00617.16
7.2.30.0060.00917.05
7.2.20.0070.01016.86
7.2.10.0070.00717.22
7.2.00.0060.00718.32
7.1.330.0040.01216.21
7.1.320.0070.01116.09
7.1.310.0060.00915.81
7.1.300.0070.01115.85
7.1.290.0030.01016.14
7.1.280.0080.00416.16
7.1.270.0100.00716.14
7.1.260.0100.00716.02
7.1.250.0080.00316.02
7.1.100.0040.00818.25
7.1.70.0000.00717.43
7.1.60.0110.01519.50
7.1.50.0110.01116.63
7.1.00.0070.07322.37
7.0.200.0600.00314.95
7.0.140.0000.07322.00
7.0.60.0070.03720.01
7.0.50.0100.08017.82
7.0.40.0030.07320.08
7.0.30.0300.05020.14
7.0.20.0230.05020.16
7.0.10.0270.08320.31
7.0.00.0000.08020.18
5.6.280.0100.06320.91
5.6.210.0100.07720.68
5.6.200.0130.08018.09
5.6.190.0030.04720.67
5.6.180.0300.06720.63
5.6.170.0300.07320.50
5.6.160.0030.04020.54
5.6.150.0070.06318.18
5.6.140.0100.04018.20
5.6.130.0000.08718.21
5.6.120.0170.07020.97
5.6.110.0130.06721.11
5.6.100.0130.06020.98
5.6.90.0070.05021.07
5.6.80.0100.07320.34
5.6.70.0170.08020.41
5.5.350.0070.08320.38
5.5.340.0000.04718.02
5.5.330.0030.09320.19
5.5.320.0130.06320.07
5.5.310.0230.08020.50
5.5.300.0130.07717.88
5.5.290.0200.07017.98
5.5.280.0000.04320.80
5.5.270.0100.06320.77
5.5.260.0130.08020.87
5.5.250.0070.07320.68
5.5.240.0170.07020.18
5.4.450.0130.05719.34
5.4.440.0130.06719.43
5.4.430.0730.06019.63
5.4.420.1030.05319.63
5.4.410.1100.05718.99
5.4.400.0270.05018.76
5.4.390.0270.05018.66
5.4.380.0300.04718.58
5.4.370.0230.05318.52
5.4.360.0300.04718.66
5.4.350.0270.06318.59
5.4.340.0270.05018.62
5.4.320.0300.04718.59
5.4.310.0170.06318.45
5.4.300.0200.05718.66
5.4.290.0230.05018.49
5.4.280.0300.05718.47
5.4.270.0200.05318.71
5.4.260.0170.06018.70
5.4.250.0270.04718.48
5.4.240.0170.06018.49
5.4.230.0300.04718.67
5.4.220.0170.06018.68
5.4.210.0370.06318.48
5.4.200.0270.07316.49
5.4.190.0300.07318.43
5.4.180.0370.05318.60
5.4.170.0270.05718.68
5.4.160.0230.05318.70
5.4.150.0130.06718.54
5.4.140.0370.04716.09
5.4.130.0270.04316.18
5.4.120.0200.05316.10
5.4.110.0170.05716.18
5.4.100.0230.05016.18
5.4.90.0370.05316.05
5.4.80.0300.04316.35
5.4.70.0270.05016.14
5.4.60.0270.04716.13
5.4.50.0130.05716.10
5.4.40.0200.05716.02
5.4.30.0330.04016.15
5.4.20.0230.05716.00
5.4.10.0200.05716.27
5.4.00.0200.05315.61
5.3.290.0270.05314.73
5.3.280.0300.04314.58
5.3.270.0230.05314.56
5.3.260.0400.05714.57
5.3.250.0170.05714.56
5.3.240.0230.05014.55
5.3.230.0230.05314.52
5.3.220.0230.05014.52
5.3.210.0200.06714.59
5.3.200.0230.05314.53
5.3.190.0200.07714.64
5.3.180.4370.06714.54
5.3.170.1730.06314.53
5.3.160.0230.07714.64
5.3.150.0270.05014.49
5.3.140.0230.05014.46
5.3.130.0200.05714.46
5.3.120.0100.06314.59
5.3.110.0230.06014.51
5.3.100.0170.05713.96
5.3.90.0230.04714.00
5.3.80.0170.05014.17
5.3.70.0370.03714.02
5.3.60.0130.05714.03
5.3.50.0200.05013.98
5.3.40.0170.05313.86
5.3.30.0230.04314.06
5.3.20.0170.05313.62
5.3.10.0170.05013.64
5.3.00.0230.04713.63
5.2.170.0170.04711.21
5.2.160.0170.04011.18
5.2.150.0070.05711.11
5.2.140.0030.05311.35
5.2.130.0230.03311.09
5.2.120.0170.04011.14
5.2.110.0200.04011.01
5.2.100.0230.05311.07
5.2.90.0200.03711.02
5.2.80.0230.05011.04
5.2.70.0170.04011.01
5.2.60.0170.04011.03
5.2.50.0070.05311.07
5.2.40.0200.03711.04
5.2.30.0130.04310.99
5.2.20.0170.03711.07
5.2.10.0200.04310.89
5.2.00.0130.04310.85
5.1.60.0170.03310.09
5.1.50.0130.0409.99
5.1.40.0030.0409.95
5.1.30.0130.03710.34
5.1.20.0170.03310.50
5.1.10.0100.03710.16
5.1.00.0100.04010.08
5.0.50.0070.0308.56
5.0.40.0030.0338.45
5.0.30.0100.0438.34
5.0.20.0070.0308.29
5.0.10.0100.0278.21
5.0.00.0100.0438.17
4.4.90.0030.0275.91
4.4.80.0130.0175.95
4.4.70.0000.0275.91
4.4.60.0100.0205.92
4.4.50.0070.0205.87
4.4.40.0100.0335.86
4.4.30.0130.0175.81
4.4.20.0130.0235.98
4.4.10.0070.0235.91
4.4.00.0070.0505.95
4.3.110.0000.0305.82
4.3.100.0000.0275.84
4.3.90.0030.0235.82
4.3.80.0000.0475.79
4.3.70.0100.0205.89
4.3.60.0070.0205.79
4.3.50.0100.0205.89
4.3.40.0100.0335.87
4.3.30.0000.0274.68
4.3.20.0000.0274.53
4.3.10.0030.0234.61
4.3.00.0070.0176.92

preferences:
56.16 ms | 400 KiB | 5 Q