3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "meno go you to from"; $regex = array(/"to/",/"go/"); $url = preg_replace($regex, '', $url); echo $url;

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.0000.04020.35
5.5.240.0000.08320.23
5.4.400.0200.07018.65
5.4.390.0170.05318.69
5.4.380.0130.07318.69
5.4.370.0130.06318.80
5.4.360.0230.05018.61
5.4.350.0130.06318.81
5.4.340.0200.06018.81
5.4.320.0070.07718.78
5.4.310.0170.05718.80
5.4.300.0130.05718.61
5.4.290.0170.05318.58
5.4.280.0100.08318.63
5.4.270.0230.07018.76
5.4.260.0230.05318.71
5.4.250.0230.05718.76
5.4.240.0270.06718.61
5.4.230.0230.04718.51
5.4.220.0270.04718.79
5.4.210.0200.05318.67
5.4.200.0170.05716.62
5.4.190.0170.08318.76
5.4.180.0100.06018.70
5.4.170.0330.04718.48
5.4.160.0100.06318.70
5.4.150.0130.05718.66
5.4.140.0030.06716.43
5.4.130.0130.05316.41
5.4.120.0200.05316.44
5.4.110.0100.05716.20
5.4.100.0100.06016.28
5.4.90.0270.04316.41
5.4.80.0230.05016.16
5.4.70.0130.06016.20
5.4.60.0100.05716.18
5.4.50.0170.05316.29
5.4.40.0200.05716.38
5.4.30.0200.05016.25
5.4.20.0130.06316.25
5.4.10.0200.05016.17
5.4.00.0230.04715.75
5.3.290.0270.04714.76
5.3.280.0100.06014.60
5.3.270.0100.06314.70
5.3.260.0200.05314.50
5.3.250.0270.04314.65
5.3.240.0100.06014.60
5.3.230.0200.05714.64
5.3.220.0170.05714.50
5.3.210.0300.04014.66
5.3.200.0170.05014.62
5.3.190.0230.06014.55
5.3.180.0130.06014.54
5.3.170.0130.05314.56
5.3.160.0300.04014.66
5.3.150.0370.05014.61
5.3.140.0300.05714.54
5.3.130.0070.07714.48
5.3.120.0270.06014.51
5.3.110.0100.07714.57
5.3.100.0230.05313.95
5.3.90.0200.05314.03
5.3.80.0100.06314.00
5.3.70.0270.04313.99
5.3.60.0200.06013.96
5.3.50.0170.06013.88
5.3.40.0070.06013.86
5.3.30.0270.04013.94
5.3.20.0200.04713.76
5.3.10.0170.05013.57
5.3.00.0130.05313.58
5.2.170.0100.04311.20
5.2.160.0230.03311.07
5.2.150.0100.05011.14
5.2.140.0270.03011.20
5.2.130.0200.04011.08
5.2.120.0130.04311.14
5.2.110.0230.05011.15
5.2.100.0130.04711.02
5.2.90.0130.04711.25
5.2.80.0230.04311.13
5.2.70.0100.05011.16
5.2.60.0130.04311.03
5.2.50.0130.04310.96
5.2.40.0130.04710.92
5.2.30.0270.02310.88
5.2.20.0030.04710.92
5.2.10.0130.04310.96
5.2.00.0030.04710.81
5.1.60.0030.04010.09
5.1.50.0070.03710.11
5.1.40.0100.04010.01
5.1.30.0170.03010.38
5.1.20.0330.03310.38
5.1.10.0030.04310.15
5.1.00.0100.03710.09
5.0.50.0100.0278.52
5.0.40.0300.0278.47
5.0.30.0130.0438.29
5.0.20.0100.0278.22
5.0.10.0100.0278.20
5.0.00.0030.0508.27
4.4.90.0270.0275.89
4.4.80.0000.0275.91
4.4.70.0070.0235.89
4.4.60.0070.0205.86
4.4.50.0030.0275.91
4.4.40.0070.0375.89
4.4.30.0000.0275.88
4.4.20.0030.0235.98
4.4.10.0030.0275.96
4.4.00.0270.0375.85
4.3.110.0030.0275.81
4.3.100.0000.0305.82
4.3.90.0070.0205.77
4.3.80.0130.0275.89
4.3.70.0030.0235.79
4.3.60.0030.0235.81
4.3.50.0070.0235.79
4.3.40.0030.0375.76
4.3.30.0030.0234.56
4.3.20.0000.0334.57
4.3.10.0130.0174.59
4.3.00.0030.0276.92

preferences:
143.25 ms | 1394 KiB | 7 Q