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><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.0110.00716.30
7.3.00.0040.00816.34
7.2.130.0060.01017.03
7.2.120.0130.00316.91
7.2.110.0000.01416.73
7.2.100.0070.00716.51
7.2.90.0040.01116.76
7.2.80.0120.00416.71
7.2.70.0120.00416.28
7.2.60.0120.00316.52
7.2.50.0130.00316.66
7.2.40.0120.00616.72
7.2.30.0120.00616.75
7.2.20.0140.00716.71
7.2.10.0130.00616.83
7.2.00.0080.00618.11
7.1.250.0070.00315.84
7.1.240.0030.00915.67
7.1.230.0040.01215.68
7.1.220.0130.00015.51
7.1.210.0070.01015.63
7.1.200.0080.00415.78
7.1.190.0070.01015.43
7.1.180.0040.01115.47
7.1.170.0040.01115.74
7.1.160.0160.00015.55
7.1.150.0100.01015.61
7.1.140.0090.00315.40
7.1.130.0030.01015.66
7.1.120.0090.00615.43
7.1.110.0100.01015.84
7.1.100.0060.00616.60
7.1.90.0070.01015.39
7.1.80.0070.00415.54
7.1.70.0070.00716.16
7.1.60.0100.00917.51
7.1.50.0080.01216.19
7.1.40.0100.00315.67
7.1.30.0090.00315.61
7.1.20.0110.00315.64
7.1.10.0120.00315.51
7.1.00.0120.03618.96
7.0.330.0100.00315.04
7.0.320.0040.00815.13
7.0.310.0090.00815.01
7.0.300.0110.00614.95
7.0.290.0130.00815.14
7.0.280.0120.00314.98
7.0.270.0120.00315.05
7.0.260.0130.00314.92
7.0.250.0030.01014.66
7.0.240.0060.00615.05
7.0.230.0100.00615.00
7.0.220.0090.00614.84
7.0.210.0090.00615.20
7.0.200.0080.00516.02
7.0.190.0090.00614.90
7.0.180.0100.00415.34
7.0.170.0070.01015.21
7.0.160.0080.00615.28
7.0.150.0030.01314.93
7.0.140.0100.03518.43
7.0.130.0060.01015.04
7.0.120.0070.00715.13
7.0.110.0140.00414.73
7.0.100.0090.03917.39
7.0.90.0100.02817.50
7.0.80.0100.04017.40
7.0.70.0070.04217.51
7.0.60.0070.04717.28
7.0.50.0180.04517.71
7.0.40.0000.03216.64
7.0.30.0130.03716.47
7.0.20.0080.04716.62
7.0.10.0110.03716.57
7.0.00.0050.03816.54
5.6.380.0080.00414.16
5.6.370.0140.01014.60
5.6.360.0080.01714.08
5.6.350.0150.00614.52
5.6.340.0170.00314.09
5.6.330.0110.00814.19
5.6.320.0090.00913.80
5.6.310.0000.01613.92
5.6.300.0040.01114.02
5.6.290.0060.00913.92
5.6.280.0080.03517.57
5.6.270.0100.00313.88
5.6.260.0000.01014.11
5.6.250.0080.03517.42
5.6.240.0060.04117.18
5.6.230.0030.04717.20
5.6.220.0090.04317.16
5.6.210.0120.04317.43
5.6.200.0080.04617.48
5.6.190.0080.02617.53
5.6.180.0070.04217.46
5.6.170.0090.02717.41
5.6.160.0120.03317.43
5.6.150.0040.05117.48
5.6.140.0130.03517.43
5.6.130.0090.02917.49
5.6.120.0120.04317.53
5.6.110.0080.04317.46
5.6.100.0090.04517.44
5.6.90.0100.04017.34
5.6.80.0090.02717.14
5.6.70.0080.02517.11
5.6.60.0080.02817.10
5.6.50.0050.04417.33
5.6.40.0050.04916.92
5.6.30.0090.04217.22
5.6.20.0100.04117.09
5.6.10.0100.03917.08
5.6.00.0150.03917.03
5.5.380.0070.04315.65
5.5.370.0080.02815.85
5.5.360.0080.02815.79
5.5.350.0090.04215.85
5.5.340.0060.02916.10
5.5.330.0100.02215.92
5.5.320.0130.03915.98
5.5.310.0060.02816.02
5.5.300.0120.04116.00
5.5.290.0070.03315.78
5.5.280.0160.03815.99
5.5.270.0110.04016.00
5.5.260.0120.03416.01
5.5.250.0070.04815.95
5.5.240.0100.03515.62
5.5.230.0070.02415.64
5.5.220.0070.02115.46
5.5.210.0060.04415.60
5.5.200.0110.04115.54
5.5.190.0120.03815.59
5.5.180.0130.04015.52
5.5.170.0080.00311.20
5.5.160.0090.02415.68
5.5.150.0090.03715.72
5.5.140.0110.02115.74
5.5.130.0030.04315.46
5.5.120.0060.04315.33
5.5.110.0070.04615.51
5.5.100.0080.02815.38
5.5.90.0060.04215.51
5.5.80.0030.04515.33
5.5.70.0070.04215.47
5.5.60.0080.04015.35
5.5.50.0030.03515.34
5.5.40.0080.03715.41
5.5.30.0060.03515.36
5.5.20.0060.02815.45
5.5.10.0050.03615.43
5.5.00.0070.02615.40
5.4.450.0060.04315.30
5.4.440.0050.04215.08
5.4.430.0090.03515.09
5.4.420.0100.04015.23
5.4.410.0100.03314.94
5.4.400.0070.03415.01
5.4.390.0050.04314.90
5.4.380.0070.04015.06
5.4.370.0100.03714.89
5.4.360.0070.03815.01
5.4.350.0050.03714.71
5.4.340.0090.03414.72
5.4.330.0070.00010.77
5.4.320.0070.03714.77
5.4.310.0050.04214.92
5.4.300.0050.03214.94
5.4.290.0050.04114.79
5.4.280.0080.03814.72
5.4.270.0050.02514.73
5.4.260.0070.02214.86
5.4.250.0040.04214.65
5.4.240.0050.03114.79
5.4.230.0060.02014.86
5.4.220.0030.03914.78
5.4.210.0060.02314.93
5.4.200.0120.03014.89
5.4.190.0060.03315.03
5.4.180.0050.03914.94
5.4.170.0040.02314.97
5.4.160.0030.03514.79
5.4.150.0020.02614.83
5.4.140.0040.04213.39
5.4.130.0030.02513.50
5.4.120.0050.02013.43
5.4.110.0050.04213.36
5.4.100.0060.03913.64
5.4.90.0020.02513.78
5.4.80.0060.02813.62
5.4.70.0100.03713.48
5.4.60.0050.03713.38
5.4.50.0050.04013.48
5.4.40.0050.02213.54
5.4.30.0070.03213.44
5.4.20.0020.02313.54
5.4.10.0060.03213.43
5.4.00.0030.03313.23
5.3.290.0100.02112.72
5.3.280.0030.04012.55
5.3.270.0030.03012.42
5.3.260.0020.04112.46
5.3.250.0050.02612.43
5.3.240.0080.03812.53
5.3.230.0020.02512.59
5.3.220.0070.03712.50
5.3.210.0090.03512.47
5.3.200.0110.03012.46
5.3.190.0030.03112.48
5.3.180.0070.03812.55
5.3.170.0030.03712.55
5.3.160.0020.03812.62
5.3.150.0100.03312.63
5.3.140.0030.03612.53
5.3.130.0060.01812.55
5.3.120.0050.02012.55
5.3.110.0050.03712.64
5.3.100.0050.03712.24
5.3.90.0020.04312.26
5.3.80.0030.02212.25
5.3.70.0050.04012.14
5.3.60.0030.02412.38
5.3.50.0050.02512.12
5.3.40.0000.04312.20
5.3.30.0020.02512.21
5.3.20.0030.03612.01
5.3.10.0070.02311.86
5.3.00.0090.03611.96
5.2.170.0020.02310.89
5.2.160.0010.03310.89
5.2.150.0030.02310.89
5.2.140.0020.02110.89
5.2.130.0050.02310.89
5.2.120.0020.02910.89
5.2.110.0110.02810.89
5.2.100.0050.02410.89
5.2.90.0050.02110.89
5.2.80.0070.01810.89
5.2.70.0080.03310.89
5.2.60.0040.02110.89
5.2.50.0050.03210.89
5.2.40.0090.02610.89
5.2.30.0070.02810.89
5.2.20.0080.03010.89
5.2.10.0060.02610.89
5.2.00.0050.02610.89
5.1.60.0050.02810.89
5.1.50.0100.01810.89
5.1.40.0080.02310.89
5.1.30.0000.03210.89
5.1.20.0030.02610.89
5.1.10.0050.02210.89
5.1.00.0060.01710.89
5.0.50.0040.02210.89
5.0.40.0060.01810.89
5.0.30.0030.02410.89
5.0.20.0020.01210.89
5.0.10.0040.02310.89
5.0.00.0070.03010.89
4.4.90.0010.02010.89
4.4.80.0020.01910.89
4.4.70.0020.02010.89
4.4.60.0030.01510.89
4.4.50.0010.02010.89
4.4.40.0020.02410.89
4.4.30.0030.01210.89
4.4.20.0020.01210.89
4.4.10.0030.02010.89
4.4.00.0020.02010.89
4.3.110.0000.01710.89
4.3.100.0050.01510.89
4.3.90.0020.01110.89
4.3.80.0060.01810.89
4.3.70.0030.01310.89
4.3.60.0030.01610.89
4.3.50.0020.02210.89
4.3.40.0050.02210.89
4.3.30.0030.01810.89
4.3.20.0020.01410.89
4.3.10.0020.02010.89
4.3.00.0020.01810.89