3v4l.org

run code in 300+ PHP versions simultaneously
<?php function NukesSpam($input) { return preg_replace('/<img(.*?)src=.http(.*?)domain\.com(.*?)>/', '<img src="http://standardsurvival.com/faces/64/drusz.png">', $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)
8.3.60.0040.01418.68
8.3.50.0100.00822.11
8.3.40.0090.00618.64
8.3.30.0110.00319.94
8.3.20.0040.00420.16
8.3.10.0080.00021.92
8.3.00.0050.00322.34
8.2.180.0130.01018.54
8.2.170.0090.00622.96
8.2.160.0070.00720.39
8.2.150.0000.00824.18
8.2.140.0000.01524.66
8.2.130.0050.00226.16
8.2.120.0060.00319.67
8.2.110.0070.00320.46
8.2.100.0120.00019.39
8.2.90.0000.00819.14
8.2.80.0040.00419.38
8.2.70.0060.00317.63
8.2.60.0050.00317.91
8.2.50.0040.00418.07
8.2.40.0030.00618.22
8.2.30.0000.00718.02
8.2.20.0060.00317.71
8.2.10.0030.00517.66
8.2.00.0000.00717.82
8.1.280.0110.00725.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0120.00923.90
8.1.230.0040.00719.15
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0070.00317.22
8.1.190.0030.00517.38
8.1.180.0030.00620.29
8.1.170.0060.00318.71
8.1.160.0000.00722.07
8.1.150.0040.00418.55
8.1.140.0000.00717.43
8.1.130.0030.00317.74
8.1.120.0000.00717.50
8.1.110.0040.00417.48
8.1.100.0030.00517.37
8.1.90.0040.00417.52
8.1.80.0040.00317.49
8.1.70.0030.00317.38
8.1.60.0030.00517.49
8.1.50.0050.00217.49
8.1.40.0050.00317.67
8.1.30.0000.00917.55
8.1.20.0000.00817.63
8.1.10.0040.00417.56
8.1.00.0040.00417.54
8.0.300.0070.00018.77
8.0.290.0000.00717.15
8.0.280.0000.00718.31
8.0.270.0030.00317.23
8.0.260.0040.00416.90
8.0.250.0000.00716.95
8.0.240.0040.00417.07
8.0.230.0000.00717.03
8.0.220.0070.00016.93
8.0.210.0030.00316.84
8.0.200.0000.00816.98
8.0.190.0000.00716.93
8.0.180.0000.00716.98
8.0.170.0040.00416.94
8.0.160.0030.00316.88
8.0.150.0040.00316.98
8.0.140.0030.00316.85
8.0.130.0000.00513.27
8.0.120.0080.00016.84
8.0.110.0000.00716.82
8.0.100.0030.00516.76
8.0.90.0000.00716.82
8.0.80.0060.01016.95
8.0.70.0070.00016.75
8.0.60.0030.00516.81
8.0.50.0040.00416.98
8.0.30.0110.00817.38
8.0.20.0140.00617.44
8.0.10.0000.00716.98
8.0.00.0110.00816.86
7.4.330.0050.00015.00
7.4.320.0000.00616.65
7.4.300.0000.00616.68
7.4.290.0030.00316.75
7.4.280.0000.00716.75
7.4.270.0050.00316.66
7.4.260.0000.00716.70
7.4.250.0040.00416.54
7.4.240.0030.00516.71
7.4.230.0030.00316.84
7.4.220.0000.02016.77
7.4.210.0110.00616.70
7.4.200.0000.00716.72
7.4.190.0040.00416.71
7.4.160.0060.01016.57
7.4.150.0090.00917.40
7.4.140.0070.01017.86
7.4.130.0220.00916.69
7.4.120.0100.00716.79
7.4.110.0170.00016.58
7.4.100.0090.01016.74
7.4.90.0110.00616.64
7.4.80.0030.01319.39
7.4.70.0040.01416.64
7.4.60.0120.00816.32
7.4.50.0060.00316.68
7.4.40.0080.00822.77
7.4.30.0110.00916.63
7.4.00.0050.01114.84
7.3.330.0060.00013.39
7.3.320.0060.00013.25
7.3.310.0040.00416.38
7.3.300.0040.00416.27
7.3.290.0100.00616.33
7.3.280.0100.00716.38
7.3.270.0100.01017.40
7.3.260.0060.01216.82
7.3.250.0100.01016.60
7.3.240.0100.01316.50
7.3.230.0060.01516.52
7.3.210.0070.01016.47
7.3.200.0060.00919.39
7.3.190.0090.01316.67
7.3.180.0070.01116.68
7.3.170.0060.00916.63
7.3.160.0120.00916.47
7.3.120.0080.00814.73
7.3.110.0100.01014.39
7.3.100.0000.01414.82
7.3.90.0070.00714.99
7.3.80.0000.01215.09
7.3.70.0070.01115.04
7.3.60.0030.00914.82
7.3.50.0000.01214.86
7.3.40.0060.00314.77
7.3.30.0030.00714.80
7.3.20.0070.00716.86
7.3.10.0000.01316.72
7.3.00.0120.00016.85
7.2.330.0160.00316.82
7.2.320.0150.00716.83
7.2.310.0140.00316.70
7.2.300.0090.00616.62
7.2.290.0140.00416.57
7.2.250.0030.01314.96
7.2.240.0030.01714.95
7.2.230.0030.01315.05
7.2.220.0060.00914.72
7.2.210.0080.00815.00
7.2.200.0110.00715.11
7.2.190.0000.01515.01
7.2.180.0040.00814.93
7.2.170.0090.00614.76
7.2.60.0030.01016.79
7.2.00.0100.00719.64
7.1.330.0070.00715.95
7.1.320.0070.00315.94
7.1.310.0030.01015.84
7.1.300.0000.01315.81
7.1.290.0100.00015.54
7.1.280.0030.01315.61
7.1.270.0100.00315.85
7.1.260.0030.00915.79
7.1.200.0250.00315.57
7.1.100.0030.00518.37
7.1.70.0000.00817.15
7.1.60.0130.00619.29
7.1.50.0100.00717.21
7.1.00.0000.07022.47
7.0.200.0420.00915.00
7.0.140.0030.07722.18
7.0.60.0100.08719.79
7.0.50.0070.04017.88
7.0.40.0030.09020.25
7.0.30.0400.07320.21
7.0.20.0300.08020.29
7.0.10.0100.04720.08
7.0.00.0070.09020.21
5.6.280.0070.07021.14
5.6.210.0030.05320.64
5.6.200.0000.05318.16
5.6.190.0030.04320.41
5.6.180.0270.05720.55
5.6.170.0300.06020.57
5.6.160.0130.06020.47
5.6.150.0030.07318.18
5.6.140.0030.05318.14
5.6.130.0030.04018.28
5.6.120.0030.04320.99
5.6.110.0030.07320.98
5.6.100.0100.08021.13
5.6.90.0170.07721.01
5.6.80.0070.07720.40
5.6.70.0100.07320.44
5.5.350.0170.04020.33
5.5.340.0030.06718.08
5.5.330.0070.04020.40
5.5.320.0230.03020.36
5.5.310.0170.04320.34
5.5.300.0100.07017.98
5.5.290.0070.03717.95
5.5.280.0070.09020.84
5.5.270.0130.03720.76
5.5.260.0030.05720.64
5.5.250.0000.06720.71
5.5.240.0070.07320.26
5.4.450.0800.05719.58
5.4.440.0800.07719.20
5.4.430.0600.06319.60
5.4.420.0630.06019.63
5.4.410.0730.04719.42
5.4.400.1270.07018.54
5.4.390.1230.05718.63
5.4.380.0200.05318.75
5.4.370.0130.05318.76
5.4.360.0170.05018.77
5.4.350.0070.03712.02
5.4.340.0080.04012.02
5.4.320.0070.04512.50
5.4.310.0070.05012.50
5.4.300.0070.04112.50
5.4.290.0050.03812.50
5.4.280.0110.04912.40
5.4.270.0060.03512.40
5.4.260.0030.08018.75
5.4.250.0230.05719.06
5.4.240.0070.07718.96
5.4.230.0170.07018.91
5.4.220.0030.06018.97
5.4.210.0070.05718.98
5.4.200.0130.04718.80
5.4.190.0070.05318.99
5.4.180.0030.05318.77
5.4.170.0130.04719.02
5.4.160.0170.05318.92
5.4.150.0070.05718.89
5.4.140.0170.04316.55
5.4.130.0070.05316.49
5.4.120.0100.07016.31
5.4.110.0170.05016.50
5.4.100.0130.05016.33
5.4.90.0000.05716.50
5.4.80.0100.04716.44
5.4.70.0030.05316.48
5.4.60.0100.04716.42
5.4.50.0130.05016.27
5.4.40.0030.07316.48
5.4.30.0070.05016.59
5.4.20.0000.08016.43
5.4.10.0130.05316.27
5.4.00.0100.05316.04
5.3.290.0070.04912.80
5.3.280.0130.04714.81
5.3.270.0100.05014.57
5.3.260.0170.04314.68
5.3.250.0130.04714.57
5.3.240.0030.05714.73
5.3.230.0230.05714.61
5.3.220.0070.05714.56
5.3.210.0030.06014.55
5.3.200.0070.05314.46
5.3.190.0070.06714.55
5.3.180.0030.05314.38
5.3.170.0130.04714.65
5.3.160.0030.05714.62
5.3.150.0100.05014.64
5.3.140.0070.05014.38
5.3.130.0100.06014.70
5.3.120.0030.06014.45
5.3.110.0100.07014.63
5.3.100.0130.06314.02
5.3.90.0130.04714.15
5.3.80.0000.05314.10
5.3.70.0100.04713.86
5.3.60.0100.04714.07
5.3.50.0100.06013.93
5.3.40.0030.05713.91
5.3.30.0070.04713.89
5.3.20.0130.04013.79
5.3.10.0030.05013.75
5.3.00.0000.07713.80
5.2.170.0070.04011.13
5.2.160.0070.05711.36
5.2.150.0070.04011.21
5.2.140.0130.05311.12
5.2.130.0130.03710.93
5.2.120.0000.04311.18
5.2.110.0070.03710.92
5.2.100.0000.04311.09
5.2.90.0030.05711.15
5.2.80.0030.04311.08
5.2.70.0070.04311.15
5.2.60.0030.04311.04
5.2.50.0100.03711.11
5.2.40.0030.04011.08
5.2.30.0000.04310.96
5.2.20.0070.04011.05
5.2.10.0130.03010.95
5.2.00.0000.04310.93
5.1.60.0000.03710.01
5.1.50.0000.03710.05
5.1.40.0100.0309.98
5.1.30.0030.03710.33
5.1.20.0100.03310.33
5.1.10.0070.03310.02
5.1.00.0070.03310.04
5.0.50.0030.0338.49
5.0.40.0030.0378.58
5.0.30.0070.0408.28
5.0.20.0070.0238.24
5.0.10.0030.0378.14
5.0.00.0070.0478.36
4.4.90.0030.0207.07
4.4.80.0070.0177.07
4.4.70.0000.0237.07
4.4.60.0070.0177.07
4.4.50.0030.0207.07
4.4.40.0000.0477.07
4.4.30.0070.0177.07
4.4.20.0030.0207.07
4.4.10.0000.0337.07
4.4.00.0100.0407.07
4.3.110.0000.0277.07
4.3.100.0000.0307.07
4.3.90.0100.0237.07
4.3.80.0070.0307.07
4.3.70.0030.0237.07
4.3.60.0070.0207.07
4.3.50.0170.0137.07
4.3.40.0130.0307.07
4.3.30.0030.0207.07
4.3.20.0070.0177.07
4.3.10.0000.0207.07
4.3.00.0200.0207.19

preferences:
44.14 ms | 401 KiB | 5 Q