3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function sTAGS($textNt, $prm) { $textSt = strip_tags($textNt, $prm); $text = trim($textSt); //echo htmlentities($text); //echo htmlentities($text, ENT_QUOTES); echo html_entity_decode($text); } $txt = ' <p>Test-Absatz.</p><!-- Kommentar --> <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.2.110.0270.00616.57
7.2.00.0000.01419.25
7.1.100.0070.00718.11
7.1.70.0040.01117.13
7.1.60.0040.00817.05
7.1.50.0080.01216.84
7.1.00.0070.07322.51
7.0.200.0040.00816.59
7.0.140.0000.07721.97
7.0.60.0100.08319.84
7.0.50.0030.08717.96
7.0.40.0030.05020.30
7.0.30.0300.07320.11
7.0.20.0330.07320.21
7.0.10.0100.08320.16
7.0.00.0100.07720.20
5.6.280.0070.07021.08
5.6.210.0030.04020.76
5.6.200.0070.08718.15
5.6.190.0100.03720.57
5.6.180.0100.09020.47
5.6.170.0170.04320.56
5.6.160.0230.03720.54
5.6.150.0070.07018.18
5.6.140.0170.04018.21
5.6.130.0100.05018.18
5.6.120.0000.09021.13
5.6.110.0070.07720.99
5.6.100.0030.07721.05
5.6.90.0030.04721.08
5.6.80.0070.03720.39
5.5.350.0130.03720.39
5.5.340.0170.06718.00
5.5.330.0070.04020.25
5.5.320.0300.08020.27
5.5.310.0330.04320.34
5.5.300.0130.06018.08
5.5.290.0070.08318.02
5.5.280.0000.04320.78
5.5.270.0030.05320.65
5.5.260.0170.06720.88
5.5.250.0030.06320.63
5.5.240.0030.08320.36
5.4.450.3870.03019.45
5.4.440.3500.04719.36
5.4.430.3200.04019.57
5.4.420.3370.04019.55
5.4.410.4300.03319.12
5.4.400.0000.05719.13
5.4.390.3530.03718.96
5.4.380.4030.04718.97
5.4.370.4030.03719.25
5.4.360.4570.03719.04
5.4.350.3970.03318.96
5.4.340.3930.03718.91
5.4.320.4200.03319.19
5.4.310.3570.03719.06
5.4.300.3570.04019.24
5.4.290.3630.03719.14
5.4.280.4270.03319.13
5.4.270.3900.03719.04
5.4.260.3570.04019.05
5.4.250.3770.04019.13
5.4.240.4100.04319.12
5.4.230.4600.03719.18
5.4.220.4400.03319.10
5.4.210.5630.03719.15
5.4.200.4270.03719.14
5.4.190.3970.03719.21
5.4.180.4700.03319.11
5.4.170.4300.04019.09
5.4.160.4670.03719.17
5.4.150.4630.03319.14
5.4.140.3970.03716.46
5.4.130.3770.03016.51
5.4.120.3600.03716.49
5.4.110.3900.03316.48
5.4.100.4070.04016.45
5.4.90.4200.04016.32
5.4.80.3900.03316.46
5.4.70.4070.03316.54
5.4.60.3700.03016.46
5.4.50.3830.03316.48
5.4.40.3670.03316.20
5.4.30.3930.04016.48
5.4.20.4200.03716.50
5.4.10.4130.03716.53
5.4.00.4270.03315.91
5.3.290.3830.04314.70
5.3.280.4600.04014.59
5.3.270.4570.04014.62
5.3.260.4300.03714.68
5.3.250.4100.04714.60
5.3.240.3830.04314.60
5.3.230.3600.04014.61
5.3.220.4030.03714.56
5.3.210.3870.04014.61
5.3.200.4370.04014.57
5.3.190.3500.03314.72
5.3.180.3700.03014.61
5.3.170.4600.03014.62
5.3.160.3870.04014.61
5.3.150.3930.03714.58
5.3.140.3800.03714.55
5.3.130.4470.04014.57
5.3.120.4570.03714.57
5.3.110.4600.04014.58
5.3.100.3730.03714.07
5.3.90.3900.03313.91
5.3.80.3770.03714.07
5.3.70.3900.03714.06
5.3.60.4000.03314.00
5.3.50.4270.03713.95
5.3.40.3770.02713.99
5.3.30.4770.02713.85
5.3.20.3730.02313.71
5.3.10.3630.03313.71
5.3.00.3630.03713.52
5.2.170.2830.02711.21
5.2.160.3070.02711.10
5.2.150.2670.02711.19
5.2.140.3130.02311.30
5.2.130.2770.03311.14
5.2.120.3100.02711.15
5.2.110.3070.02311.11
5.2.100.2930.03710.99
5.2.90.3100.02311.04
5.2.80.3130.02311.09
5.2.70.3130.02311.13
5.2.60.3000.02711.19
5.2.50.3530.02311.07
5.2.40.2670.02711.04
5.2.30.2830.03310.97
5.2.20.2770.03010.85
5.2.10.2530.02710.87
5.2.00.3170.03010.76
5.1.60.3030.02310.05
5.1.50.2900.0209.99
5.1.40.3070.0309.88
5.1.30.3300.02310.34
5.1.20.3230.03010.36
5.1.10.3030.02710.11
5.1.00.3100.02310.09
5.0.50.1800.0238.54
5.0.40.1600.0238.40
5.0.30.1830.0338.24
5.0.20.2100.0208.11
5.0.10.1430.0208.17
5.0.00.1430.0338.22
4.4.90.1170.0205.82
4.4.80.1370.0135.84
4.4.70.1570.0205.88
4.4.60.1770.0135.82
4.4.50.1470.0135.83
4.4.40.1770.0235.79
4.4.30.1800.0135.84
4.4.20.1800.0175.90
4.4.10.1830.0135.89
4.4.00.1770.0275.93
4.3.110.1670.0135.78
4.3.100.1400.0175.86
4.3.90.1800.0135.80
4.3.80.1800.0275.78
4.3.70.1570.0205.73
4.3.60.1570.0175.77
4.3.50.1370.0105.71
4.3.40.1430.0235.70
4.3.30.0630.0135.70
4.3.20.0770.0235.70
4.3.10.0770.0275.70
4.3.00.0630.0175.70