3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function sTAGS($text, $prm) { $text = strip_tags($text, $prm); $text = trim($text); $text = str_replace(' ','',$text); $text = htmlentities($text); $text = htmlentities($text, ENT_QUOTES); echo html_entity_decode($text); } $txt = ' <p>Test-Absatz. </p><a href="#fragment"> Anderer Text</a>'; sTAGS($txt, ""); ?>

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.10.0000.01116.38
7.3.00.0040.00716.42
7.2.130.0070.00316.61
7.2.120.0180.00316.48
7.2.110.0070.00716.27
7.2.100.0040.00816.68
7.2.90.0170.00316.64
7.2.80.0120.00416.74
7.2.70.0160.00916.68
7.2.60.0070.01016.70
7.2.50.0070.00716.38
7.2.40.0300.00616.92
7.2.30.0240.01216.46
7.2.20.0300.00316.74
7.2.10.0140.00616.47
7.2.00.0090.01017.96
7.1.250.0030.01015.56
7.1.200.0070.00715.59
7.1.100.0000.01218.21
7.1.70.0040.00816.95
7.1.60.0100.01319.46
7.1.50.0100.01416.99
7.1.00.0030.07722.54
7.0.200.0080.00016.77
7.0.140.0000.07722.11
7.0.100.0130.04019.83
7.0.90.0200.06719.85
7.0.80.0430.06019.87
7.0.70.0430.07319.93
7.0.60.0370.08720.00
7.0.50.0330.08720.26
7.0.40.0130.08020.13
7.0.30.0130.07720.09
7.0.20.0130.08020.09
7.0.10.0230.07719.96
7.0.00.0070.08320.00
5.6.280.0000.07720.78
5.6.250.0100.03720.61
5.6.240.0170.06320.53
5.6.230.0070.08720.63
5.6.220.0100.07720.57
5.6.210.0000.06020.62
5.6.200.0100.07721.05
5.6.190.0200.07321.05
5.6.180.0130.08721.12
5.6.170.0070.07320.89
5.6.160.0130.07321.09
5.6.150.0130.08021.04
5.6.140.0100.08320.94
5.6.130.0100.09021.05
5.6.120.0200.07720.99
5.6.110.0070.08321.03
5.6.100.0200.08021.07
5.6.90.0170.07321.02
5.6.80.0030.05720.47
5.6.70.0000.06720.43
5.6.60.0030.07320.40
5.6.50.0170.07020.38
5.6.40.0130.07020.32
5.6.30.0070.07320.33
5.6.20.0170.07320.29
5.6.10.0270.06320.29
5.6.00.0200.06020.31
5.5.380.0130.08720.38
5.5.370.0230.07020.34
5.5.360.0130.07020.35
5.5.350.0130.08020.38
5.5.340.0170.07720.74
5.5.330.0070.09020.55
5.5.320.0070.07020.71
5.5.310.0100.08020.80
5.5.300.0200.07320.84
5.5.290.0100.07020.87
5.5.280.0100.09020.83
5.5.270.0230.07720.59
5.5.260.0170.08020.72
5.5.250.0070.07320.59
5.5.240.0070.08320.26
5.5.230.0070.07720.15
5.5.220.0100.08020.13
5.5.210.0070.08020.12
5.5.200.0170.05320.19
5.5.190.0030.08320.16
5.5.180.0200.06320.14
5.5.160.0070.08720.14
5.5.150.0070.06320.03
5.5.140.0070.08020.14
5.5.130.0030.06320.07
5.5.120.0100.08020.21
5.5.110.0170.08320.16
5.5.100.0200.07320.04
5.5.90.0130.07020.08
5.5.80.0170.07319.92
5.5.70.0070.07719.95
5.5.60.0170.06320.01
5.5.50.0030.09319.83
5.5.40.0100.07720.06
5.5.30.0130.07719.94
5.5.20.0070.07020.00
5.5.10.0130.07019.97
5.5.00.0130.06720.06
5.4.450.0070.08319.41
5.4.440.0170.05319.37
5.4.430.0030.08319.27
5.4.420.0100.07319.27
5.4.410.0030.08319.11
5.4.400.0030.08018.93
5.4.390.0070.07019.03
5.4.380.0070.06318.86
5.4.370.0100.06718.88
5.4.360.0170.05719.04
5.4.350.0070.06719.10
5.4.340.0130.07019.14
5.4.320.0000.08318.92
5.4.310.0100.07719.03
5.4.300.0030.07719.20
5.4.290.0130.04319.22
5.4.280.0070.07319.02
5.4.270.0130.07319.04
5.4.260.0070.04319.21
5.4.250.0030.07019.15
5.4.240.0130.08019.03
5.4.230.0130.05719.04
5.4.220.0070.06319.23
5.4.210.0130.05719.20
5.4.200.0030.07319.04
5.4.190.0100.07019.14
5.4.180.0070.06318.81
5.4.170.0070.07319.14
5.4.160.0100.07719.14
5.4.150.0130.05719.07
5.4.140.0100.08016.34
5.4.130.0070.07016.32
5.4.120.0070.04016.08
5.4.110.0070.05016.50
5.4.100.0070.07016.38
5.4.90.0030.06016.43
5.4.80.0130.06316.32
5.4.70.0100.07716.33
5.4.60.0100.06716.49
5.4.50.0170.06016.32
5.4.40.0100.07316.54
5.4.30.0130.05016.40
5.4.20.0000.08016.39
5.4.10.0130.07016.31
5.4.00.0070.04715.64
5.3.290.0100.07714.73
5.3.280.0100.06014.66
5.3.270.0100.06714.67
5.3.260.0170.07014.63
5.3.250.0130.04714.54
5.3.240.0030.04314.54
5.3.230.0100.07714.55
5.3.220.0200.02714.58
5.3.210.0130.06714.54
5.3.200.0030.06014.62
5.3.190.0130.06714.68
5.3.180.0070.07014.71
5.3.170.0070.07714.55
5.3.160.0170.06714.49
5.3.150.0000.06014.67
5.3.140.0100.06714.54
5.3.130.0100.08014.48
5.3.120.0230.03314.67
5.3.110.0000.05714.57
5.3.100.0130.07014.10
5.3.90.0200.05014.00
5.3.80.0200.04313.90
5.3.70.0130.06313.95
5.3.60.0030.06714.10
5.3.50.0100.06714.05
5.3.40.0100.06013.83
5.3.30.0070.03314.01
5.3.20.0070.05013.58
5.3.10.0070.03013.69
5.3.00.0170.02013.56
5.2.170.0070.06711.26
5.2.160.0000.06711.00
5.2.150.0070.04011.26
5.2.140.0100.03711.00
5.2.130.0070.02311.15
5.2.120.0000.03011.15
5.2.110.0030.03711.15
5.2.100.0000.03310.96
5.2.90.0070.03310.99
5.2.80.0000.03310.95
5.2.70.0000.03011.21
5.2.60.0030.05310.98
5.2.50.0030.03010.93
5.2.40.0000.03311.05
5.2.30.0000.03011.08
5.2.20.0000.03010.96
5.2.10.0000.03010.78
5.2.00.0030.02710.73
5.1.60.0100.0209.98
5.1.50.0030.03010.00
5.1.40.0070.0209.96
5.1.30.0070.02010.47
5.1.20.0000.02710.42
5.1.10.0000.02710.06
5.1.00.0030.02310.13
5.0.50.0030.0209.18
5.0.40.0030.0209.18
5.0.30.0070.0239.18
5.0.20.0030.0179.18
5.0.10.0000.0209.18
5.0.00.0070.0279.18
4.4.90.0000.0179.18
4.4.80.0030.0239.18
4.4.70.0000.0179.18
4.4.60.0000.0179.18
4.4.50.0030.0139.18
4.4.40.0000.0239.18
4.4.30.0000.0179.18
4.4.20.0000.0209.18
4.4.10.0030.0139.18
4.4.00.0000.0309.18
4.3.110.0030.0139.18
4.3.100.0030.0139.18
4.3.90.0000.0179.18
4.3.80.0000.0239.18
4.3.70.0000.0179.18
4.3.60.0000.0139.18
4.3.50.0000.0179.18
4.3.40.0030.0209.18
4.3.30.0000.0309.18
4.3.20.0000.0179.18
4.3.10.0030.0379.18
4.3.00.0000.0209.18