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.50
8.3.50.0120.01022.08
8.3.40.0150.00018.84
8.3.30.0120.00318.95
8.3.20.0000.00820.34
8.3.10.0060.00321.78
8.3.00.0030.00619.49
8.2.180.0120.00918.66
8.2.170.0090.00922.96
8.2.160.0040.01120.41
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0050.00219.67
8.2.110.0070.00321.11
8.2.100.0060.00617.88
8.2.90.0030.00519.08
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0030.00617.68
8.2.50.0040.00418.07
8.2.40.0040.00420.07
8.2.30.0040.00418.07
8.2.20.0050.00217.76
8.2.10.0050.00318.14
8.2.00.0040.00417.94
8.1.280.0090.01225.92
8.1.270.0060.00318.89
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.86
8.1.230.0070.00420.95
8.1.220.0030.00517.79
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0040.00417.22
8.1.180.0030.00518.10
8.1.170.0030.00520.44
8.1.160.0040.00422.02
8.1.150.0040.00418.84
8.1.140.0000.00817.56
8.1.130.0050.00217.89
8.1.120.0000.00817.56
8.1.110.0070.00017.44
8.1.100.0080.00017.52
8.1.90.0030.00417.55
8.1.80.0040.00417.50
8.1.70.0040.00417.53
8.1.60.0060.00317.63
8.1.50.0030.00617.64
8.1.40.0000.00717.59
8.1.30.0000.00817.65
8.1.20.0040.00417.71
8.1.10.0060.00317.60
8.1.00.0040.00417.59
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0070.00018.46
8.0.270.0000.00717.25
8.0.260.0000.00718.49
8.0.250.0030.00317.07
8.0.240.0030.00317.09
8.0.230.0030.00316.93
8.0.220.0070.00017.02
8.0.210.0030.00316.98
8.0.200.0000.00716.96
8.0.190.0040.00417.04
8.0.180.0050.00316.95
8.0.170.0000.00716.88
8.0.160.0080.00016.96
8.0.150.0070.00016.86
8.0.140.0030.00516.95
8.0.130.0060.00013.36
8.0.120.0070.00016.89
8.0.110.0040.00416.88
8.0.100.0040.00416.80
8.0.90.0030.00516.85
8.0.80.0030.01316.93
8.0.70.0030.00616.98
8.0.60.0050.00317.03
8.0.50.0040.00417.05
8.0.30.0130.01117.26
8.0.20.0180.00617.40
8.0.10.0040.00417.07
8.0.00.0130.00617.10
7.4.330.0020.00215.06
7.4.320.0000.00716.62
7.4.300.0060.00016.64
7.4.290.0000.00716.68
7.4.280.0040.00416.71
7.4.270.0030.00316.69
7.4.260.0070.00416.63
7.4.250.0080.00316.70
7.4.240.0020.00516.74
7.4.230.0050.00216.64
7.4.220.0030.01516.79
7.4.210.0030.01216.60
7.4.200.0000.00716.82
7.4.160.0060.01016.60
7.4.150.0100.01617.40
7.4.140.0080.01217.86
7.4.130.0090.00916.53
7.4.120.0070.01016.62
7.4.110.0150.00316.66
7.4.100.0100.00716.41
7.4.90.0130.01016.53
7.4.80.0140.00719.39
7.4.70.0130.00316.52
7.4.60.0100.00716.67
7.4.50.0060.00316.47
7.4.40.0060.00916.66
7.4.30.0110.00716.78
7.4.00.0070.00714.94
7.3.330.0000.00513.24
7.3.320.0150.00013.18
7.3.310.0040.00416.36
7.3.300.0040.00416.40
7.3.290.0090.00716.40
7.3.280.0070.01016.32
7.3.270.0100.01017.40
7.3.260.0160.00316.63
7.3.250.0130.00716.51
7.3.240.0110.00816.71
7.3.230.0100.00916.43
7.3.210.0150.00316.25
7.3.200.0120.00919.39
7.3.190.0100.01016.38
7.3.180.0070.01016.36
7.3.170.0080.01016.40
7.3.160.0100.00616.70
7.2.330.0100.01316.73
7.2.320.0190.00316.88
7.2.310.0070.01016.65
7.2.300.0090.01316.83
7.2.290.0120.01216.74
7.2.00.0090.00919.52
7.1.100.0080.00318.34
7.1.70.0040.00717.07
7.1.60.0060.01919.50
7.1.50.0100.01316.59
7.1.00.0070.07322.34
7.0.200.0090.00916.79
7.0.140.0070.06322.01
7.0.60.0070.03720.02
7.0.50.0070.06017.92
7.0.40.0100.06020.04
7.0.30.0300.05320.21
7.0.20.0270.06320.21
7.0.10.0300.06320.01
7.0.00.0170.08020.01
5.6.280.0030.07320.90
5.6.210.0070.06020.73
5.6.200.0100.08018.12
5.6.190.0170.07020.41
5.6.180.0300.07320.65
5.6.170.0230.04320.51
5.6.160.0000.04320.49
5.6.150.0030.04018.11
5.6.140.0030.04318.21
5.6.130.0030.05318.18
5.6.120.0100.07721.04
5.6.110.0070.09020.96
5.6.100.0230.06720.98
5.6.90.0100.06320.98
5.6.80.0130.07320.47
5.6.70.0100.07720.42
5.5.350.0130.08020.40
5.5.340.0130.03018.01
5.5.330.0070.09720.36
5.5.320.0070.06320.27
5.5.310.0300.06720.31
5.5.300.0030.08717.87
5.5.290.0100.05717.92
5.5.280.0070.03720.89
5.5.270.0130.05020.96
5.5.260.0030.05720.75
5.5.250.0070.08720.66
5.5.240.0070.04320.27
5.4.450.0170.05719.50
5.4.440.0770.05719.10
5.4.430.0930.05319.63
5.4.420.0830.06019.14
5.4.410.0770.06319.33
5.4.400.0230.04718.62
5.4.390.0170.05718.62
5.4.380.0170.05318.57
5.4.370.0200.05018.62
5.4.360.0230.04718.45
5.4.350.0230.05018.49
5.4.340.0270.04718.60
5.4.320.0100.06318.58
5.4.310.0230.05318.46
5.4.300.0270.04318.66
5.4.290.0130.05718.45
5.4.280.0200.05318.61
5.4.270.0270.04718.57
5.4.260.0130.05318.70
5.4.250.0170.05718.64
5.4.240.0170.05718.64
5.4.230.0130.06318.58
5.4.220.0130.06018.48
5.4.210.0170.05018.63
5.4.200.0130.05316.64
5.4.190.0170.05018.64
5.4.180.0070.06718.55
5.4.170.0300.04318.48
5.4.160.0170.05318.64
5.4.150.0230.04718.62
5.4.140.0130.05316.24
5.4.130.0300.04016.30
5.4.120.0270.04316.36
5.4.110.0230.05016.09
5.4.100.0170.05316.31
5.4.90.0170.05316.34
5.4.80.0130.06016.17
5.4.70.0200.04716.04
5.4.60.0230.04316.03
5.4.50.0230.04316.23
5.4.40.0100.05716.21
5.4.30.0100.05716.02
5.4.20.0200.05016.00
5.4.10.0100.05716.22
5.4.00.0230.06715.53
5.3.290.0130.06314.70
5.3.280.0130.05714.52
5.3.270.0230.04714.59
5.3.260.0230.05014.56
5.3.250.0170.06014.60
5.3.240.0130.05314.51
5.3.230.0230.06714.57
5.3.220.0170.07714.52
5.3.210.0400.05714.55
5.3.200.0170.05314.54
5.3.190.0200.05314.64
5.3.180.0270.04314.54
5.3.170.0130.05314.56
5.3.160.0230.05314.47
5.3.150.0130.05714.59
5.3.140.0100.05714.62
5.3.130.0200.05014.52
5.3.120.0270.06714.50
5.3.110.0230.05014.61
5.3.100.0130.05313.98
5.3.90.0230.06714.05
5.3.80.0230.04314.05
5.3.70.0470.05713.98
5.3.60.1100.05013.93
5.3.50.0270.04313.92
5.3.40.0230.05313.88
5.3.30.0200.05013.95
5.3.20.0230.05313.60
5.3.10.0200.06313.62
5.3.00.0100.06013.55
5.2.170.0100.05011.16
5.2.160.0230.03311.18
5.2.150.0170.04011.07
5.2.140.0200.05011.17
5.2.130.4630.04311.16
5.2.120.0270.03011.13
5.2.110.0170.04011.12
5.2.100.0130.04711.10
5.2.90.0130.04011.15
5.2.80.0200.04711.02
5.2.70.0200.03711.31
5.2.60.0070.04710.98
5.2.50.0030.05310.96
5.2.40.0070.04310.98
5.2.30.0170.04010.94
5.2.20.0100.04310.89
5.2.10.0100.05710.83
5.2.00.0100.04310.67
5.1.60.0100.0379.96
5.1.50.0100.04010.06
5.1.40.0130.0379.98
5.1.30.0070.04310.35
5.1.20.0030.04710.39
5.1.10.0270.03710.08
5.1.00.0200.04310.10
5.0.50.0100.0308.56
5.0.40.0130.0238.43
5.0.30.0200.0338.28
5.0.20.0100.0378.28
5.0.10.0070.0408.27
5.0.00.0100.0408.31
4.4.90.0030.0335.88
4.4.80.0070.0305.88
4.4.70.0030.0305.92
4.4.60.0100.0275.82
4.4.50.0070.0305.97
4.4.40.0100.0305.91
4.4.30.0030.0235.90
4.4.20.0070.0305.95
4.4.10.0070.0305.91
4.4.00.0030.0475.98
4.3.110.0030.0335.79
4.3.100.0070.0275.83
4.3.90.0070.0305.80
4.3.80.0070.0435.79
4.3.70.0130.0235.77
4.3.60.0070.0305.90
4.3.50.0100.0275.90
4.3.40.0070.0435.86
4.3.30.0000.0334.55
4.3.20.0070.0274.55
4.3.10.0030.0304.47
4.3.00.0100.0176.92

preferences:
32 ms | 401 KiB | 5 Q