3v4l.org

run code in 300+ PHP versions simultaneously
<?php function OhYea2GunNukesSpamUsingDruszAvatarAndLotsOfHardcodedCrapYOLOSWAGHeyKarlSupMan($input) { $blacklist = array('a-xxx-site-with-spam.com','visual.merriam-webster.com','example.com'); $output=$input; foreach ($blacklist as $a_blacklisted) { $output = preg_replace('/<img(.*?)src=.http(.*?)'.str_replace('.','\.',$a_blacklisted).'(.*?)>/', '<img src="http://standardsurvival.com/faces/64/drusz.png">', $output); } return $output; } echo OhYea2GunNukesSpamUsingDruszAvatarAndLotsOfHardcodedCrapYOLOSWAGHeyKarlSupMan('a spammy one: <img src="http://www.a-xxx-site-with-spam.com/test1.jpg">/n'); echo OhYea2GunNukesSpamUsingDruszAvatarAndLotsOfHardcodedCrapYOLOSWAGHeyKarlSupMan('a legit one: <img src="http://www.google.com/test1.jpg">/n'); echo OhYea2GunNukesSpamUsingDruszAvatarAndLotsOfHardcodedCrapYOLOSWAGHeyKarlSupMan('another legit: <img src="http://www.domain.com/test1.jpg">/n'); echo OhYea2GunNukesSpamUsingDruszAvatarAndLotsOfHardcodedCrapYOLOSWAGHeyKarlSupMan('a spammy: <img src="http://visual.merriam-webster.com/test1.jpg">/n'); echo OhYea2GunNukesSpamUsingDruszAvatarAndLotsOfHardcodedCrapYOLOSWAGHeyKarlSupMan('a legit: <img src="http://www.example.com/test1.jpg">/n');

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.0120.00618.47
8.3.50.0150.00222.05
8.3.40.0060.00918.79
8.3.30.0180.00019.09
8.3.20.0040.00420.21
8.3.10.0030.00522.09
8.3.00.0090.00022.46
8.2.180.0080.00816.75
8.2.170.0090.00622.96
8.2.160.0070.00720.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00417.63
8.2.110.0060.00322.20
8.2.100.0080.00417.91
8.2.90.0040.00419.19
8.2.80.0030.00517.97
8.2.70.0030.00617.75
8.2.60.0060.00318.03
8.2.50.0090.00018.07
8.2.40.0040.00418.09
8.2.30.0040.00418.14
8.2.20.0030.00617.83
8.2.10.0030.00617.87
8.2.00.0000.00817.91
8.1.280.0090.00925.92
8.1.270.0000.00723.99
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0040.00423.79
8.1.230.0080.00319.16
8.1.220.0030.00517.78
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0070.00317.51
8.1.180.0080.00018.66
8.1.170.0050.00318.56
8.1.160.0070.00022.15
8.1.150.0000.00718.71
8.1.140.0040.00417.52
8.1.130.0070.00017.81
8.1.120.0040.00417.58
8.1.110.0030.00517.61
8.1.100.0000.00717.62
8.1.90.0000.00817.61
8.1.80.0000.00817.49
8.1.70.0000.00717.59
8.1.60.0050.00517.73
8.1.50.0030.00517.70
8.1.40.0050.00217.71
8.1.30.0080.00017.73
8.1.20.0000.00817.75
8.1.10.0060.00317.61
8.1.00.0030.00617.55
8.0.300.0000.00718.77
8.0.290.0040.00417.16
8.0.280.0070.00018.35
8.0.270.0000.00817.34
8.0.260.0040.00416.89
8.0.250.0030.00617.09
8.0.240.0000.00717.01
8.0.230.0030.00417.00
8.0.220.0030.00317.04
8.0.210.0030.00317.09
8.0.200.0060.00317.07
8.0.190.0000.00717.07
8.0.180.0040.00417.04
8.0.170.0030.00617.04
8.0.160.0070.00017.18
8.0.150.0040.00416.98
8.0.140.0000.00717.02
8.0.130.0030.00313.44
8.0.120.0050.00317.00
8.0.110.0070.00016.93
8.0.100.0040.00417.01
8.0.90.0070.00016.93
8.0.80.0070.01317.08
8.0.70.0000.00817.04
8.0.60.0030.00517.18
8.0.50.0000.00717.00
8.0.30.0090.01117.39
8.0.20.0150.00917.40
8.0.10.0040.00417.05
8.0.00.0070.01217.01
7.4.330.0020.00215.00
7.4.320.0000.00616.84
7.4.300.0030.00316.87
7.4.290.0030.00316.80
7.4.280.0030.00316.82
7.4.270.0050.00316.60
7.4.260.0030.00316.73
7.4.250.0030.00516.71
7.4.240.0040.00316.66
7.4.230.0000.00716.61
7.4.220.0090.00916.70
7.4.210.0070.00816.80
7.4.200.0000.00716.83
7.4.190.0050.00216.91
7.4.160.0160.00016.61
7.4.150.0100.00717.40
7.4.140.0100.01117.86
7.4.130.0120.00516.66
7.4.120.0080.01016.70
7.4.110.0040.01316.67
7.4.100.0200.00416.70
7.4.90.0100.01316.60
7.4.80.0150.00619.39
7.4.70.0040.01316.71
7.4.60.0120.00616.72
7.4.50.0000.00816.80
7.4.40.0000.01322.77
7.4.30.0000.01716.58
7.4.00.0030.01315.16
7.3.330.0070.00013.25
7.3.320.0050.00013.32
7.3.310.0070.00016.52
7.3.300.0000.00616.48
7.3.290.0100.00316.51
7.3.280.0070.00916.51
7.3.270.0080.01217.40
7.3.260.0150.00916.92
7.3.250.0080.01216.57
7.3.240.0070.01316.80
7.3.230.0150.00316.71
7.3.210.0000.01616.53
7.3.200.0030.01319.39
7.3.190.0150.00716.72
7.3.180.0080.00816.78
7.3.170.0120.00316.68
7.3.160.0130.00916.74
7.3.120.0100.00014.97
7.2.330.0070.01116.76
7.2.320.0110.01516.71
7.2.310.0060.01816.79
7.2.300.0080.01616.93
7.2.290.0140.00316.91
7.2.00.0140.00019.83
7.1.100.0090.00618.57
7.1.70.0030.00517.33
7.1.60.0040.00717.25
7.1.50.0000.01217.20
7.1.00.0070.08322.47
7.0.200.0060.00617.00
7.0.140.0000.07322.03
7.0.60.0070.07719.93
7.0.50.0030.07717.81
7.0.40.0130.05020.26
7.0.30.0230.06720.10
7.0.20.0300.04720.28
7.0.10.0130.07720.07
7.0.00.0070.05320.32
5.6.280.0070.07020.86
5.6.210.0030.07320.59
5.6.200.0130.06718.31
5.6.190.0070.08320.47
5.6.180.0430.07720.67
5.6.170.0270.06320.53
5.6.160.0100.08020.52
5.6.150.0200.06318.16
5.6.140.0070.05718.27
5.6.130.0100.07318.11
5.6.120.0030.07321.14
5.6.110.0130.08321.12
5.6.100.0130.07721.05
5.6.90.0100.08320.88
5.6.80.0200.05720.51
5.5.350.0430.07020.38
5.5.340.0100.07717.94
5.5.330.0070.09020.28
5.5.320.0030.05320.30
5.5.310.0230.08320.37
5.5.300.0200.07317.97
5.5.290.0000.06718.07
5.5.280.0100.04020.90
5.5.270.0030.04020.75
5.5.260.0070.08020.89
5.5.250.0130.07720.69
5.5.240.0000.08020.08
5.4.450.0470.04719.50
5.4.440.1070.04719.55
5.4.430.0830.03319.30
5.4.420.0500.04719.27
5.4.410.0470.05019.34
5.4.400.0430.03018.98
5.4.390.0030.03019.15
5.4.380.0300.04018.78
5.4.370.0100.05718.82
5.4.360.0170.05718.52
5.4.350.0100.08018.43
5.4.340.0170.05018.49
5.4.320.0080.03712.51
5.4.310.0080.03612.50
5.4.300.0060.03612.51
5.4.290.0070.03712.50
5.4.280.0020.03912.40
5.4.270.0050.03912.40
5.4.260.0070.05718.93
5.4.250.0100.07318.96
5.4.240.0100.05319.06
5.4.230.0030.05718.95
5.4.220.0100.05018.89
5.4.210.0100.07318.93
5.4.200.0130.05018.82
5.4.190.0100.05318.72
5.4.180.0070.05018.86
5.4.170.0070.05318.90
5.4.160.0100.05018.63
5.4.150.0130.04718.83
5.4.140.0070.07316.44
5.4.130.0100.04716.43
5.4.120.0170.04716.45
5.4.110.0130.04316.66
5.4.100.0070.05016.52
5.4.90.0170.03716.40
5.4.80.0030.05716.64
5.4.70.0070.05016.43
5.4.60.0070.05016.36
5.4.50.0070.05016.45
5.4.40.0070.05016.32
5.4.30.0100.04316.36
5.4.20.0000.05716.31
5.4.10.0170.04316.47
5.4.00.0100.04715.83
5.3.290.0030.04212.80
5.3.280.0070.05014.77
5.3.270.0030.06014.74
5.3.260.0030.05714.76
5.3.250.0170.04014.82
5.3.240.0100.04714.79
5.3.230.0000.05714.68
5.3.220.0030.05314.75
5.3.210.0070.07314.65
5.3.200.0000.05714.78
5.3.190.0170.04714.46
5.3.180.0030.05314.78
5.3.170.0130.04314.72
5.3.160.0100.04714.78
5.3.150.0130.07014.64
5.3.140.0070.06014.64
5.3.130.0070.05714.45
5.3.120.0130.04714.70
5.3.110.0130.05014.38
5.3.100.0100.05014.04
5.3.90.0100.04714.02
5.3.80.0030.05014.21
5.3.70.0130.04714.09
5.3.60.0030.05014.08
5.3.50.0130.05314.13
5.3.40.0070.05013.97
5.3.30.0070.05013.88
5.3.20.0070.04713.60
5.3.10.0070.04713.74
5.3.00.0070.05013.63
5.2.170.0070.04011.14
5.2.160.0100.05311.11
5.2.150.0100.03711.31
5.2.140.0030.04311.22
5.2.130.0070.03711.07
5.2.120.0030.04011.01
5.2.110.0070.05311.26
5.2.100.0030.04011.26
5.2.90.0100.03711.32
5.2.80.0030.04311.18
5.2.70.0030.04011.09
5.2.60.0070.04011.14
5.2.50.0030.04311.19
5.2.40.0070.04010.84
5.2.30.0070.04010.96
5.2.20.0170.03310.93
5.2.10.0100.03710.93
5.2.00.0000.04310.81
5.1.60.0030.03310.00
5.1.50.0130.0309.95
5.1.40.0070.0339.94
5.1.30.0100.03010.29
5.1.20.0100.03010.33
5.1.10.0000.03710.11
5.1.00.0070.03710.27
5.0.50.0070.0278.50
5.0.40.0000.0338.41
5.0.30.0030.0438.32
5.0.20.0070.0238.24
5.0.10.0070.0278.22
5.0.00.0030.0478.36
4.4.90.0030.0206.71
4.4.80.0100.0236.71
4.4.70.0030.0206.71
4.4.60.0030.0206.71
4.4.50.0070.0276.71
4.4.40.0030.0336.71
4.4.30.0070.0176.71
4.4.20.0100.0136.71
4.4.10.0070.0176.71
4.4.00.0100.0276.71
4.3.110.0070.0276.71
4.3.100.0070.0236.71
4.3.90.0030.0306.71
4.3.80.0030.0406.71
4.3.70.0000.0236.71
4.3.60.0070.0276.71
4.3.50.0030.0236.71
4.3.40.0030.0436.71
4.3.30.0000.0236.71
4.3.20.0000.0236.71
4.3.10.0070.0276.71
4.3.00.0100.01714.49

preferences:
43.85 ms | 401 KiB | 5 Q