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)\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.40.0150.00618.77
8.3.30.0090.00618.98
8.3.20.0040.00420.34
8.3.10.0080.00021.73
8.3.00.0080.00019.50
8.2.170.0140.00322.96
8.2.160.0090.00620.53
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0000.00819.76
8.2.110.0030.00620.46
8.2.100.0070.00418.09
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0070.00417.63
8.2.60.0000.00917.93
8.2.50.0060.00318.07
8.2.40.0000.00919.95
8.2.30.0040.00418.13
8.2.20.0030.00517.87
8.2.10.0030.00518.13
8.2.00.0030.00517.82
8.1.270.0060.00318.72
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00321.95
8.1.230.0090.00323.88
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0050.00320.47
8.1.160.0040.00421.89
8.1.150.0000.00718.78
8.1.140.0040.00417.44
8.1.130.0030.00317.80
8.1.120.0000.00717.61
8.1.110.0030.00517.59
8.1.100.0040.00417.47
8.1.90.0050.00317.61
8.1.80.0070.00017.55
8.1.70.0000.00817.58
8.1.60.0050.00317.70
8.1.50.0050.00317.61
8.1.40.0040.00417.57
8.1.30.0030.00517.76
8.1.20.0000.00817.59
8.1.10.0030.00517.51
8.1.00.0000.00817.66
8.0.300.0040.00418.77
8.0.290.0050.00216.88
8.0.280.0030.00318.46
8.0.270.0070.00017.38
8.0.260.0000.00717.27
8.0.250.0030.00317.18
8.0.240.0040.00417.12
8.0.230.0000.00717.08
8.0.220.0000.00716.99
8.0.210.0000.00717.02
8.0.200.0030.00317.07
8.0.190.0040.00417.13
8.0.180.0000.00717.04
8.0.170.0000.00817.05
8.0.160.0030.00517.00
8.0.150.0080.00016.86
8.0.140.0000.00716.89
8.0.130.0060.00013.42
8.0.120.0080.00017.01
8.0.110.0040.00416.95
8.0.100.0050.00216.90
8.0.90.0070.00016.85
8.0.80.0090.00617.06
8.0.70.0000.00816.82
8.0.60.0000.00717.09
8.0.50.0040.00417.14
8.0.30.0140.01117.14
8.0.20.0150.00917.40
8.0.10.0070.00016.96
8.0.00.0100.00716.80
7.4.330.0020.00215.03
7.4.320.0030.00316.66
7.4.300.0000.00616.63
7.4.290.0000.00716.71
7.4.280.0070.00016.73
7.4.270.0070.00016.51
7.4.260.0000.01016.76
7.4.250.0060.00316.75
7.4.240.0050.00216.59
7.4.230.0070.00016.73
7.4.220.0060.01216.63
7.4.210.0100.01016.66
7.4.200.0040.00416.74
7.4.160.0080.00816.71
7.4.150.0210.01817.40
7.4.140.0110.00617.86
7.4.130.0070.01316.52
7.4.120.0060.01416.67
7.4.110.0100.01216.60
7.4.100.0090.00916.70
7.4.90.0130.00516.54
7.4.80.0120.00719.39
7.4.70.0110.00716.58
7.4.60.0060.01016.67
7.4.50.0000.00816.78
7.4.40.0090.00916.78
7.4.30.0150.00816.69
7.4.00.0060.01015.23
7.3.330.0030.00313.32
7.3.320.0060.00613.27
7.3.310.0000.00716.51
7.3.300.0000.00716.45
7.3.290.0090.01016.46
7.3.280.0100.01016.41
7.3.270.0060.01217.40
7.3.260.0120.00616.75
7.3.250.0120.00716.52
7.3.240.0070.01416.70
7.3.230.0170.00016.57
7.3.210.0060.01216.73
7.3.200.0130.01019.39
7.3.190.0060.01516.25
7.3.180.0030.01716.64
7.3.170.0120.00916.34
7.3.160.0060.01016.39
7.2.330.0090.00916.67
7.2.320.0040.01816.79
7.2.310.0110.00716.84
7.2.300.0070.01016.64
7.2.290.0120.01216.86
7.2.00.0030.00619.51
7.1.200.0060.00615.71
7.1.100.0090.00618.25
7.1.70.0080.00017.52
7.1.60.0130.01019.50
7.1.50.0070.01517.21
7.1.00.0100.07022.53
7.0.200.0140.00316.96
7.0.140.0030.07022.09
7.0.60.0030.04020.03
7.0.50.0100.08017.77
7.0.40.0130.08020.25
7.0.30.0300.06720.11
7.0.20.0230.04720.05
7.0.10.0200.04720.03
7.0.00.0070.07320.18
5.6.280.0030.07321.06
5.6.210.0100.07720.55
5.6.200.0100.07318.18
5.6.190.0100.08320.56
5.6.180.0330.05020.61
5.6.170.0300.06020.47
5.6.160.0000.04320.48
5.6.150.0100.07018.21
5.6.140.0030.04718.20
5.6.130.0070.08018.16
5.6.120.0130.06021.11
5.6.110.0030.07720.96
5.6.100.0070.07320.88
5.6.90.0100.06720.87
5.6.80.0070.07720.50
5.6.70.0200.06020.37
5.5.350.0130.08020.31
5.5.340.0030.04317.98
5.5.330.0170.07720.37
5.5.320.0170.08720.13
5.5.310.0330.06320.24
5.5.300.0030.04317.94
5.5.290.0070.05017.93
5.5.280.0070.03720.89
5.5.270.0070.08020.86
5.5.260.0030.09020.76
5.5.250.0000.05020.65
5.5.240.0000.05320.27
5.4.450.0200.05019.34
5.4.440.1000.06019.60
5.4.430.0630.08019.09
5.4.420.0870.06019.43
5.4.410.0830.05319.49
5.4.400.0200.05718.74
5.4.390.0230.04718.56
5.4.380.0200.05718.68
5.4.370.0170.05718.49
5.4.360.0230.05318.48
5.4.350.0200.07018.68
5.4.340.0170.05718.66
5.4.320.0200.06018.65
5.4.310.0130.05718.70
5.4.300.0330.04318.52
5.4.290.0330.03718.66
5.4.280.0300.04718.61
5.4.270.0200.05318.68
5.4.260.0230.05018.68
5.4.250.0170.06718.70
5.4.240.0070.07018.70
5.4.230.0370.06018.64
5.4.220.0130.06318.59
5.4.210.0200.05018.70
5.4.200.0270.04716.67
5.4.190.0270.06318.70
5.4.180.0300.05018.55
5.4.170.0270.05018.70
5.4.160.0230.04718.65
5.4.150.0170.05318.47
5.4.140.0230.05016.30
5.4.130.0230.04316.16
5.4.120.0270.05016.22
5.4.110.0330.03316.21
5.4.100.0130.05716.08
5.4.90.0130.05716.01
5.4.80.0270.05316.34
5.4.70.0330.05716.32
5.4.60.0100.06016.16
5.4.50.0330.03716.28
5.4.40.0230.05016.15
5.4.30.0300.04716.18
5.4.20.0300.06016.11
5.4.10.0230.06316.22
5.4.00.0230.06315.61
5.3.290.0270.07014.62
5.3.280.0200.07014.50
5.3.270.0370.06714.60
5.3.260.0130.06714.75
5.3.250.0130.05714.55
5.3.240.0200.05714.59
5.3.230.0230.05014.57
5.3.220.0130.05714.71
5.3.210.0100.06314.54
5.3.200.0270.04314.55
5.3.190.0270.04314.52
5.3.180.0170.05314.52
5.3.170.0230.04314.56
5.3.160.0270.05314.49
5.3.150.0200.05314.64
5.3.140.0300.04014.48
5.3.130.0230.05314.47
5.3.120.0200.06714.52
5.3.110.0230.07714.54
5.3.100.0130.05714.00
5.3.90.0270.05714.18
5.3.80.0270.05014.00
5.3.70.0230.05013.93
5.3.60.0370.05013.95
5.3.50.0130.05314.11
5.3.40.0300.04713.87
5.3.30.0330.06013.86
5.3.20.0170.05013.66
5.3.10.0170.05013.75
5.3.00.0200.07013.64
5.2.170.0200.05711.11
5.2.160.0130.04311.20
5.2.150.0130.04711.13
5.2.140.0170.04011.19
5.2.130.0230.03311.16
5.2.120.0200.03311.05
5.2.110.0030.05711.01
5.2.100.0230.03311.13
5.2.90.0200.03711.16
5.2.80.0170.04311.09
5.2.70.0130.04311.25
5.2.60.0170.04011.02
5.2.50.0200.04311.07
5.2.40.0100.05711.06
5.2.30.0230.03011.04
5.2.20.0070.04711.07
5.2.10.0100.05010.90
5.2.00.0130.04010.73
5.1.60.0130.0339.93
5.1.50.0170.03310.00
5.1.40.0130.03310.09
5.1.30.0130.03710.48
5.1.20.0200.03310.46
5.1.10.0100.03710.18
5.1.00.0230.02710.13
5.0.50.0100.0278.53
5.0.40.0170.0308.44
5.0.30.0070.0438.24
5.0.20.0070.0278.21
5.0.10.0100.0238.21
5.0.00.0000.0508.29
4.4.90.0100.0235.95
4.4.80.0070.0235.91
4.4.70.0030.0235.91
4.4.60.0070.0205.91
4.4.50.0070.0205.86
4.4.40.0100.0335.90
4.4.30.0070.0275.82
4.4.20.0070.0305.96
4.4.10.0030.0275.93
4.4.00.0130.0305.95
4.3.110.0130.0175.81
4.3.100.0030.0275.74
4.3.90.0070.0305.87
4.3.80.0070.0375.78
4.3.70.0070.0205.89
4.3.60.0030.0235.81
4.3.50.0070.0235.79
4.3.40.0130.0405.77
4.3.30.0070.0204.55
4.3.20.0070.0204.58
4.3.10.0030.0234.52
4.3.00.0100.0236.92

preferences:
48.46 ms | 400 KiB | 5 Q