3v4l.org

run code in 300+ PHP versions simultaneously
<?php function NukesSpam($input) { return preg_replace('/src=[/"/']http(.*?)domain\.com/', '', $input); } echo NukesSpam('<img src="http://www.domain.com/test1.jpg">');

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.4.260.0300.07319.06
5.4.250.0200.07318.86
5.4.240.0300.04319.07
5.4.230.0230.04718.88
5.4.220.0170.06319.30
5.4.210.0230.07019.13
5.4.200.0200.03719.09
5.4.190.0230.07019.21
5.4.180.0170.08318.96
5.4.170.0300.06319.07
5.4.160.0200.07319.09
5.4.150.0170.05719.20
5.4.140.0370.06016.38
5.4.130.0230.03016.32
5.4.120.0270.04016.49
5.4.110.0330.05716.55
5.4.100.0330.06016.56
5.4.90.0330.06016.19
5.4.80.0300.06316.44
5.4.70.0300.06716.60
5.4.60.0230.06016.43
5.4.50.0300.05716.51
5.4.40.0270.04016.43
5.4.30.0200.03316.16
5.4.20.0270.03716.42
5.4.10.0170.04016.24
5.4.00.0270.04316.12
5.3.280.0270.07014.71
5.3.270.0330.06714.50
5.3.260.0230.06714.58
5.3.250.0200.03714.51
5.3.240.0230.04014.65
5.3.230.0170.07714.52
5.3.220.0270.04314.56
5.3.210.0170.05714.57
5.3.200.0200.07714.73
5.3.190.0270.04014.64
5.3.180.0230.04014.64
5.3.170.0200.05714.49
5.3.160.0200.06714.55
5.3.150.0100.05714.64
5.3.140.0200.07714.63
5.3.130.0170.03714.52
5.3.120.0100.04314.52
5.3.110.0130.05014.53
5.3.100.0200.06713.95
5.3.90.0230.07313.99
5.3.80.0170.08014.18
5.3.70.0170.06013.93
5.3.60.0370.06014.05
5.3.50.0230.07314.02
5.3.40.0270.06713.87
5.3.30.0170.05013.93
5.3.20.0300.05013.61
5.3.10.0200.06313.58
5.3.00.0200.06313.55
5.2.170.0170.05011.89
5.2.160.0230.05311.89
5.2.150.0230.05711.89
5.2.140.0200.06011.89
5.2.130.0200.03011.89
5.2.120.0170.06311.89
5.2.110.0130.04011.89
5.2.100.0100.04311.89
5.2.90.0130.04011.89
5.2.80.0200.04011.89
5.2.70.0200.06011.89
5.2.60.0200.05711.89
5.2.50.0230.03711.89
5.2.40.0170.06011.89
5.2.30.0170.03311.89
5.2.20.0170.06011.89
5.2.10.0170.03711.89
5.2.00.0130.04711.89
5.1.60.0130.03711.89
5.1.50.0130.03311.89
5.1.40.0230.02011.89
5.1.30.0170.03011.89
5.1.20.0130.05711.89
5.1.10.0170.04011.89
5.1.00.0130.03311.89
5.0.50.0070.05011.89
5.0.40.0100.03711.89
5.0.30.0130.05711.89
5.0.20.0100.02311.89
5.0.10.0070.04311.89
5.0.00.0130.05011.89
4.4.90.0170.02311.89
4.4.80.0100.02011.89
4.4.70.0100.03311.89
4.4.60.0070.02011.89
4.4.50.0070.01711.89
4.4.40.0030.02711.89
4.4.30.0100.01711.89
4.4.20.0130.03011.89
4.4.10.0130.02711.89
4.4.00.0100.05011.89
4.3.110.0070.03311.89
4.3.100.0170.02311.89
4.3.90.0030.03711.89
4.3.80.0070.04311.89
4.3.70.0130.02711.89
4.3.60.0100.03311.89
4.3.50.0070.03311.89
4.3.40.0100.03011.89
4.3.30.0070.02711.89
4.3.20.0070.03011.89
4.3.10.0070.02711.89
4.3.00.0030.03711.89

preferences:
155.97 ms | 1394 KiB | 7 Q