3v4l.org

run code in 300+ PHP versions simultaneously
<?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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0070.01116.63
8.3.50.0120.00722.00
8.3.40.0000.01518.75
8.3.30.0110.00319.04
8.3.20.0070.00020.21
8.3.10.0000.00723.65
8.3.00.0030.00520.87
8.2.180.0150.00016.50
8.2.170.0110.00422.96
8.2.160.0030.01020.53
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00520.52
8.2.110.0060.00322.20
8.2.100.0080.00617.72
8.2.90.0030.00519.16
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0000.00819.79
8.2.30.0120.00018.24
8.2.20.0050.00317.57
8.2.10.0000.00818.16
8.2.00.0030.00717.74
8.1.280.0120.00325.92
8.1.270.0070.00323.88
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00322.19
8.1.230.0030.00719.01
8.1.220.0000.00817.76
8.1.210.0000.00918.77
8.1.200.0040.00717.22
8.1.190.0040.00417.23
8.1.180.0060.00319.01
8.1.170.0000.00818.58
8.1.160.0000.00721.89
8.1.150.0000.00718.52
8.1.140.0000.00717.39
8.1.130.0030.00317.39
8.1.120.0030.00317.30
8.1.110.0040.00417.39
8.1.100.0030.00317.28
8.1.90.0000.00717.30
8.1.80.0000.01117.38
8.1.70.0040.00417.38
8.1.60.0050.00217.44
8.1.50.0090.00017.47
8.1.40.0080.00417.47
8.1.30.0080.00017.63
8.1.20.0000.00717.49
8.1.10.0040.00417.43
8.1.00.0050.00217.34
8.0.300.0000.00718.77
8.0.290.0040.00417.18
8.0.280.0000.00718.45
8.0.270.0030.00317.14
8.0.260.0030.00316.75
8.0.250.0000.00716.97
8.0.240.0030.00316.95
8.0.230.0030.00316.76
8.0.220.0070.00016.85
8.0.210.0030.00316.84
8.0.200.0060.00016.93
8.0.190.0080.00016.85
8.0.180.0040.00416.75
8.0.170.0040.00416.76
8.0.160.0040.00416.90
8.0.150.0080.00016.81
8.0.140.0040.00416.68
8.0.130.0030.00313.23
8.0.120.0080.00016.80
8.0.110.0000.00716.81
8.0.100.0040.00416.87
8.0.90.0030.00316.90
8.0.80.0060.01616.88
8.0.70.0000.00716.86
8.0.60.0000.00716.69
8.0.50.0040.00416.70
8.0.30.0060.01317.22
8.0.20.0140.00817.40
8.0.10.0000.00717.00
8.0.00.0070.01016.77
7.4.330.0050.00015.00
7.4.320.0030.00316.59
7.4.300.0060.00016.58
7.4.290.0100.00016.59
7.4.280.0000.00816.58
7.4.270.0050.00316.58
7.4.260.0000.00716.59
7.4.250.0070.00016.59
7.4.240.0070.00016.57
7.4.230.0030.00316.64
7.4.220.0100.00716.56
7.4.210.0090.00716.64
7.4.200.0000.00716.71
7.4.190.0000.00716.39
7.4.160.0100.01016.62
7.4.150.0170.00017.40
7.4.140.0120.01017.86
7.4.130.0070.01016.45
7.4.120.0070.01216.54
7.4.110.0070.01016.56
7.4.100.0070.01016.54
7.4.90.0140.00316.46
7.4.80.0140.00519.39
7.4.70.0100.00616.53
7.4.60.0070.01016.33
7.4.50.0080.00016.55
7.4.40.0090.00616.13
7.4.30.0090.00916.50
7.4.00.0120.00514.93
7.3.330.0050.00013.02
7.3.320.0000.00513.10
7.3.310.0030.00316.13
7.3.300.0050.00316.25
7.3.290.0140.00416.23
7.3.280.0110.00916.25
7.3.270.0090.01017.40
7.3.260.0040.01316.23
7.3.250.0120.00516.43
7.3.240.0070.01016.60
7.3.230.0060.00916.46
7.3.210.0100.00716.30
7.3.200.0130.00319.39
7.3.190.0090.00916.44
7.3.180.0050.01116.29
7.3.170.0070.01016.39
7.3.160.0030.01216.45
7.3.120.0050.01014.72
7.3.110.0100.00714.73
7.3.100.0050.01114.80
7.3.90.0030.01014.79
7.3.80.0020.01114.78
7.3.70.0030.00914.61
7.3.60.0040.00814.61
7.3.50.0080.00714.54
7.3.40.0060.01014.82
7.3.30.0010.01114.58
7.3.20.0020.01416.52
7.3.10.0070.00716.54
7.3.00.0060.00716.49
7.2.330.0100.01016.66
7.2.320.0130.00616.47
7.2.310.0120.00616.45
7.2.300.0060.01016.45
7.2.290.0070.01116.23
7.2.250.0060.01415.21
7.2.240.0070.01014.79
7.2.230.0050.00714.93
7.2.220.0020.01114.65
7.2.210.0060.00915.06
7.2.200.0030.00815.03
7.2.190.0050.00815.00
7.2.180.0110.00314.98
7.2.170.0050.00714.91
7.2.110.0270.00616.57
7.2.00.0000.01419.25
7.1.330.0080.00515.81
7.1.320.0030.00815.86
7.1.310.0090.00615.84
7.1.300.0060.00715.48
7.1.290.0060.00715.70
7.1.280.0090.00615.74
7.1.270.0060.00715.74
7.1.260.0070.00815.69
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

preferences:
45.78 ms | 400 KiB | 5 Q