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/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.0070.00716.50
8.3.50.0060.01122.13
8.3.40.0090.00618.71
8.3.30.0080.00819.17
8.3.20.0040.00420.29
8.3.10.0080.00021.73
8.3.00.0050.00319.38
8.2.180.0090.00918.33
8.2.170.0110.00422.96
8.2.160.0100.00320.52
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00421.18
8.2.110.0070.00321.17
8.2.100.0070.00419.88
8.2.90.0060.00319.26
8.2.80.0040.00417.97
8.2.70.0030.00717.63
8.2.60.0030.00618.05
8.2.50.0050.00318.07
8.2.40.0050.00320.07
8.2.30.0070.00018.02
8.2.20.0040.00417.82
8.2.10.0000.00818.19
8.2.00.0080.00017.88
8.1.280.0100.01025.92
8.1.270.0060.00318.89
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.54
8.1.230.0060.00617.64
8.1.220.0030.00517.79
8.1.210.0000.00818.77
8.1.200.0040.00417.25
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0080.00020.42
8.1.160.0040.00421.97
8.1.150.0040.00418.90
8.1.140.0000.00817.53
8.1.130.0070.00017.77
8.1.120.0070.00017.54
8.1.110.0040.00417.60
8.1.100.0000.00717.53
8.1.90.0000.00717.55
8.1.80.0040.00417.52
8.1.70.0050.00317.51
8.1.60.0060.00317.65
8.1.50.0040.00417.64
8.1.40.0040.00417.47
8.1.30.0030.00717.69
8.1.20.0040.00417.69
8.1.10.0030.00517.51
8.1.00.0000.00817.55
8.0.300.0000.00818.77
8.0.290.0000.00716.88
8.0.280.0070.00018.40
8.0.270.0070.00017.21
8.0.260.0000.00717.18
8.0.250.0030.00317.12
8.0.240.0000.00617.17
8.0.230.0070.00017.05
8.0.220.0040.00416.93
8.0.210.0070.00017.08
8.0.200.0000.00617.09
8.0.190.0040.00417.12
8.0.180.0040.00416.94
8.0.170.0050.00317.12
8.0.160.0000.00717.09
8.0.150.0030.00316.99
8.0.140.0000.00717.02
8.0.130.0030.00313.36
8.0.120.0000.00716.90
8.0.110.0000.00717.05
8.0.100.0040.00416.81
8.0.90.0040.00416.94
8.0.80.0130.00716.91
8.0.70.0000.01016.94
8.0.60.0080.00017.14
8.0.50.0000.00817.01
8.0.30.0080.01017.36
8.0.20.0140.01317.40
8.0.10.0040.00417.08
8.0.00.0060.01316.78
7.4.330.0020.00215.05
7.4.320.0060.00016.75
7.4.300.0030.00616.62
7.4.290.0000.00716.64
7.4.280.0000.00716.65
7.4.270.0040.00416.64
7.4.260.0030.00716.50
7.4.250.0040.00416.67
7.4.240.0030.00516.66
7.4.230.0030.00316.68
7.4.220.0060.01216.78
7.4.210.0100.00616.77
7.4.200.0080.00016.72
7.4.160.0050.01116.50
7.4.150.0240.00317.40
7.4.140.0090.01017.86
7.4.130.0070.01016.62
7.4.120.0080.00816.61
7.4.110.0090.00916.27
7.4.100.0140.00416.70
7.4.90.0090.00916.56
7.4.80.0030.02019.39
7.4.70.0110.00616.59
7.4.60.0070.01016.66
7.4.50.0040.00416.63
7.4.40.0080.00916.80
7.4.30.0070.01016.79
7.4.00.0020.01515.08
7.3.330.0000.00613.17
7.3.320.0070.00713.29
7.3.310.0070.00016.25
7.3.300.0000.00716.46
7.3.290.0060.01116.38
7.3.280.0040.01216.38
7.3.270.0060.01317.40
7.3.260.0080.01116.38
7.3.250.0120.00616.53
7.3.240.0130.00916.86
7.3.230.0100.00716.45
7.3.210.0000.01616.77
7.3.200.0060.01219.39
7.3.190.0100.00716.62
7.3.180.0100.00616.71
7.3.170.0060.01216.84
7.3.160.0030.01316.82
7.3.120.0130.00715.29
7.3.110.0090.00614.95
7.3.100.0070.00715.01
7.3.90.0030.00714.72
7.3.80.0030.01015.00
7.3.70.0030.00915.02
7.3.60.0110.00714.61
7.3.50.0130.00615.02
7.3.40.0070.00414.98
7.3.30.0030.01414.66
7.3.20.0000.01216.73
7.3.10.0070.00716.75
7.3.00.0130.00316.79
7.2.330.0120.00616.76
7.2.320.0150.00816.66
7.2.310.0330.05116.80
7.2.300.0040.01416.73
7.2.290.0100.01316.83
7.2.250.0120.00815.30
7.2.240.0150.00615.10
7.2.230.0000.01714.91
7.2.220.0030.01015.20
7.2.210.0060.00915.25
7.2.200.0030.00615.17
7.2.190.0110.00715.18
7.2.180.0100.00715.14
7.2.170.0060.00615.23
7.2.110.0130.00616.82
7.2.80.0060.00316.88
7.2.60.0030.01416.86
7.2.00.0080.00519.77
7.1.330.0030.01016.21
7.1.320.0120.00016.00
7.1.310.0060.00616.02
7.1.300.0070.01315.83
7.1.290.0070.01015.94
7.1.280.0030.01015.81
7.1.270.0000.00915.97
7.1.260.0060.00615.85
7.1.200.0080.00316.11
7.1.100.0030.01518.53
7.1.70.0090.00617.48
7.1.60.0070.02019.50
7.1.50.0100.01017.08
7.1.00.0030.06722.47
7.0.200.0630.00715.18
7.0.140.0000.07721.98
7.0.60.0100.03320.02
7.0.50.0130.07317.84
7.0.40.0170.07320.22
7.0.30.0300.07020.22
7.0.20.0230.06320.11
7.0.10.0170.05020.31
7.0.00.0100.08320.18
5.6.280.0030.07021.09
5.6.210.0030.08720.66
5.6.200.0070.07718.13
5.6.190.0070.04720.32
5.6.180.0270.07320.37
5.6.170.0230.07320.66
5.6.160.0130.03020.41
5.6.150.0100.08018.12
5.6.140.0030.07318.11
5.6.130.0100.03718.18
5.6.120.0070.08721.09
5.6.110.0000.07321.01
5.6.100.0130.03321.12
5.6.90.0170.07720.98
5.6.80.0230.06320.46
5.6.70.0130.07720.50
5.5.350.0130.05020.48
5.5.340.0100.04017.98
5.5.330.0070.06020.46
5.5.320.0170.08320.40
5.5.310.0300.08020.34
5.5.300.0130.07717.97
5.5.290.0000.09317.91
5.5.280.0030.08320.88
5.5.270.0030.07720.86
5.5.260.0070.08720.67
5.5.250.0030.06320.57
5.5.240.0070.08020.17
5.4.450.0170.06019.29
5.4.440.0870.06719.10
5.4.430.0600.07019.24
5.4.420.0930.05719.47
5.4.410.0800.06019.47
5.4.400.0230.05318.68
5.4.390.0300.05718.45
5.4.380.0130.06018.57
5.4.370.0230.06018.74
5.4.360.0170.05718.50
5.4.350.0170.05718.70
5.4.340.0200.05318.65
5.4.320.0230.08018.49
5.4.310.0130.08018.50
5.4.300.0100.06718.57
5.4.290.0230.05318.74
5.4.280.0330.07018.53
5.4.270.0270.05018.73
5.4.260.0230.04718.59
5.4.250.0200.06018.64
5.4.240.0200.05718.68
5.4.230.0270.06718.61
5.4.220.0270.05018.70
5.4.210.0130.06718.75
5.4.200.0270.05016.63
5.4.190.0300.04718.60
5.4.180.0100.07018.41
5.4.170.0270.07018.68
5.4.160.0300.06718.68
5.4.150.0300.06318.66
5.4.140.0200.05716.10
5.4.130.0230.06016.27
5.4.120.0200.05316.22
5.4.110.0130.05316.16
5.4.100.0200.05016.27
5.4.90.0270.04716.29
5.4.80.0200.04716.29
5.4.70.0230.07316.38
5.4.60.0230.06716.06
5.4.50.0230.04716.09
5.4.40.0070.06316.30
5.4.30.0070.06016.26
5.4.20.0200.04716.18
5.4.10.0130.05316.15
5.4.00.0170.05015.60
5.3.290.0330.04014.64
5.3.280.0270.04714.54
5.3.270.0300.05014.67
5.3.260.0130.06014.52
5.3.250.0200.05314.56
5.3.240.0170.05714.59
5.3.230.0100.06014.57
5.3.220.0130.05714.61
5.3.210.0230.05014.54
5.3.200.0070.06714.47
5.3.190.0300.06014.55
5.3.180.0230.04314.63
5.3.170.0200.05314.51
5.3.160.0100.06314.50
5.3.150.0170.05014.71
5.3.140.0130.05314.60
5.3.130.0100.06714.49
5.3.120.0370.03714.45
5.3.110.0070.06714.53
5.3.100.0170.05014.10
5.3.90.0070.06014.11
5.3.80.0100.05714.00
5.3.70.0230.04713.93
5.3.60.0100.06013.93
5.3.50.0100.05313.87
5.3.40.0270.04013.97
5.3.30.0230.04713.89
5.3.20.0230.04313.71
5.3.10.0130.05013.64
5.3.00.0170.05013.60
5.2.170.0100.05011.13
5.2.160.0200.03711.16
5.2.150.0170.06011.07
5.2.140.0170.03711.17
5.2.130.0070.04711.03
5.2.120.0170.03711.05
5.2.110.0070.04711.16
5.2.100.0170.03711.08
5.2.90.0200.03711.17
5.2.80.0070.04711.13
5.2.70.0130.04011.02
5.2.60.0200.04011.11
5.2.50.0130.04310.98
5.2.40.0130.03710.96
5.2.30.0070.04710.96
5.2.20.0170.03310.91
5.2.10.0130.04011.02
5.2.00.0200.03710.69
5.1.60.0100.03710.13
5.1.50.0100.0379.97
5.1.40.0130.03010.01
5.1.30.0170.03010.46
5.1.20.0070.04010.34
5.1.10.0100.03710.05
5.1.00.0130.03310.08
5.0.50.0030.0338.59
5.0.40.0070.0278.46
5.0.30.0000.0508.22
5.0.20.0130.0238.33
5.0.10.0130.0238.24
5.0.00.0070.0438.18
4.4.90.0000.0305.83
4.4.80.0070.0205.91
4.4.70.0030.0235.91
4.4.60.0070.0205.91
4.4.50.0030.0305.82
4.4.40.0030.0375.88
4.4.30.0070.0205.91
4.4.20.0070.0205.88
4.4.10.0030.0235.96
4.4.00.0100.0305.88
4.3.110.0000.0275.75
4.3.100.0000.0275.81
4.3.90.0100.0175.78
4.3.80.0030.0375.84
4.3.70.0070.0305.77
4.3.60.0070.0205.80
4.3.50.0070.0205.80
4.3.40.0130.0275.74
4.3.30.0000.0274.56
4.3.20.0030.0304.52
4.3.10.0070.0234.50
4.3.00.0030.0236.92

preferences:
54.14 ms | 401 KiB | 5 Q