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

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)
5.6.80.0100.07720.53
5.5.240.0000.08320.14
5.4.400.0200.04019.17
5.4.390.0300.05019.09
5.4.380.0300.07019.09
5.4.370.0200.04319.08
5.4.360.0230.07018.91
5.4.350.0270.04719.13
5.4.340.0230.07019.24
5.4.320.0200.05018.92
5.4.310.0130.04318.93
5.4.300.0170.03718.91
5.4.290.0300.06319.09
5.4.280.0370.05318.93
5.4.270.0370.05719.08
5.4.260.0370.06019.06
5.4.250.0300.07019.25
5.4.240.0300.07019.08
5.4.230.0270.04318.80
5.4.220.0530.06318.77
5.4.210.0470.06718.77
5.4.200.0270.06719.13
5.4.190.0430.05318.77
5.4.180.0300.06318.88
5.4.170.0270.07319.16
5.4.160.0270.04719.06
5.4.150.0330.06719.20
5.4.140.0270.07316.36
5.4.130.0300.05716.25
5.4.120.0300.06316.45
5.4.110.0200.05716.47
5.4.100.0270.06716.39
5.4.90.0230.06716.43
5.4.80.0230.07016.29
5.4.70.0230.03316.21
5.4.60.0230.06016.37
5.4.50.0300.06716.06
5.4.40.0300.03716.31
5.4.30.0170.04716.31
5.4.20.0230.03016.36
5.4.10.0170.03716.27
5.4.00.0200.03315.86
5.3.290.0130.04314.50
5.3.280.0170.04014.44
5.3.270.0200.07314.48
5.3.260.0200.06314.62
5.3.250.0170.07014.54
5.3.240.0230.07314.45
5.3.230.0300.04314.56
5.3.220.0230.06714.66
5.3.210.0200.05714.52
5.3.200.0200.06714.42
5.3.190.0300.05314.43
5.3.180.0200.07314.42
5.3.170.0300.07014.43
5.3.160.0270.07314.63
5.3.150.0230.05314.42
5.3.140.0270.07314.59
5.3.130.0130.04314.59
5.3.120.0130.08014.41
5.3.110.0270.03714.41
5.3.100.0270.03313.89
5.3.90.0200.03713.88
5.3.80.0300.04013.97
5.3.70.0130.04713.88
5.3.60.0200.04013.86
5.3.50.0330.05713.82
5.3.40.0200.03714.04
5.3.30.0270.02713.86
5.3.20.0230.06013.54
5.3.10.0100.04313.61
5.3.00.0130.04013.44
5.2.170.0470.04011.04
5.2.160.0170.03710.96
5.2.150.0200.03710.99
5.2.140.0200.06011.04
5.2.130.0170.03710.95
5.2.120.0170.03010.95
5.2.110.0170.05711.26
5.2.100.0200.04710.96
5.2.90.0200.03710.93
5.2.80.0170.03010.98
5.2.70.0370.03010.98
5.2.60.0200.05711.13
5.2.50.0200.04310.93
5.2.40.0170.05010.93
5.2.30.0200.04310.80
5.2.20.0230.03010.87
5.2.10.0170.04310.94
5.2.00.0230.03010.79
5.1.60.0130.0309.89
5.1.50.0130.02310.12
5.1.40.0170.04710.02
5.1.30.0170.04010.41
5.1.20.0170.03010.37
5.1.10.0130.02310.11
5.1.00.0200.02710.00
5.0.50.0070.0278.44
5.0.40.0070.0208.46
5.0.30.0070.0308.17
5.0.20.0070.0438.18
5.0.10.0100.0238.25
5.0.00.0100.0408.10
4.4.90.0100.0238.10
4.4.80.0000.0208.10
4.4.70.0030.0178.10
4.4.60.0100.0108.10
4.4.50.0030.0178.10
4.4.40.0130.0238.10
4.4.30.0030.0178.10
4.4.20.0030.0178.10
4.4.10.0100.0178.10
4.4.00.0070.0238.10
4.3.110.0100.0108.10
4.3.100.0070.0138.10
4.3.90.0070.0178.10
4.3.80.0070.0238.10
4.3.70.0070.0178.10
4.3.60.0100.0108.10
4.3.50.0070.0138.10
4.3.40.0070.0238.10
4.3.30.0030.0138.10
4.3.20.0030.0178.10
4.3.10.0000.0178.10
4.3.00.0000.0178.10

preferences:
142.68 ms | 1394 KiB | 7 Q