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, "<p><a>"); ?>

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.70.0100.00716.61
8.3.60.0100.01016.63
8.3.50.0100.01021.98
8.3.40.0070.01418.62
8.3.30.0030.01019.05
8.3.20.0000.00720.31
8.3.10.0040.00423.60
8.3.00.0040.00420.86
8.2.180.0110.01118.54
8.2.170.0150.00022.96
8.2.160.0060.00820.36
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00020.39
8.2.110.0090.00022.15
8.2.100.0100.00317.72
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0000.00717.93
8.2.50.0040.00418.07
8.2.40.0040.00420.01
8.2.30.0000.00918.30
8.2.20.0030.00517.66
8.2.10.0040.00418.00
8.2.00.0060.00317.69
8.1.280.0100.01025.92
8.1.270.0080.00023.89
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.96
8.1.230.0100.00019.22
8.1.220.0000.00817.78
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0040.00417.22
8.1.180.0060.00318.88
8.1.170.0000.00818.50
8.1.160.0040.00421.96
8.1.150.0000.00818.57
8.1.140.0070.00017.42
8.1.130.0000.00717.88
8.1.120.0030.00317.46
8.1.110.0050.00217.33
8.1.100.0000.00717.29
8.1.90.0070.00017.28
8.1.80.0000.00917.30
8.1.70.0030.00317.40
8.1.60.0030.00517.59
8.1.50.0030.00617.40
8.1.40.0070.00317.50
8.1.30.0080.00017.55
8.1.20.0000.00817.48
8.1.10.0000.00717.41
8.1.00.0040.00417.44
8.0.300.0040.00418.77
8.0.290.0000.00817.18
8.0.280.0000.00718.32
8.0.270.0000.00717.33
8.0.260.0000.00617.30
8.0.250.0030.00316.87
8.0.240.0000.00716.92
8.0.230.0070.00016.94
8.0.220.0000.00716.80
8.0.210.0030.00316.71
8.0.200.0030.00316.79
8.0.190.0040.00416.93
8.0.180.0020.00516.90
8.0.170.0040.00416.88
8.0.160.0000.00716.83
8.0.150.0040.00416.73
8.0.140.0030.00316.84
8.0.130.0000.00513.30
8.0.120.0050.00316.83
8.0.110.0050.00216.73
8.0.100.0000.00816.63
8.0.90.0070.00016.88
8.0.80.0100.00616.83
8.0.70.0030.00516.71
8.0.60.0030.00316.89
8.0.50.0040.00416.78
8.0.30.0090.00916.95
8.0.20.0130.00517.40
8.0.10.0000.00816.97
8.0.00.0140.00316.65
7.4.330.0050.00015.00
7.4.320.0030.00316.52
7.4.300.0000.00616.47
7.4.290.0100.00016.62
7.4.280.0000.00816.50
7.4.270.0030.00316.66
7.4.260.0000.00716.51
7.4.250.0070.00016.48
7.4.240.0050.00216.64
7.4.230.0000.00716.69
7.4.220.0130.01016.64
7.4.210.0080.00816.53
7.4.200.0040.00316.59
7.4.190.0000.00716.73
7.4.160.0030.01316.49
7.4.150.0070.01017.40
7.4.140.0140.00517.86
7.4.130.0100.00716.52
7.4.120.0130.00616.50
7.4.110.0140.00416.58
7.4.100.0100.00716.45
7.4.90.0100.01016.40
7.4.80.0090.01819.39
7.4.70.0070.01016.68
7.4.60.0200.00316.48
7.4.50.0040.00416.32
7.4.40.0120.00416.54
7.4.30.0100.00716.61
7.4.00.0120.00414.90
7.3.330.0060.00013.07
7.3.320.0020.00213.23
7.3.310.0070.00016.09
7.3.300.0000.00716.10
7.3.290.0110.00716.18
7.3.280.0070.01416.20
7.3.270.0120.01117.40
7.3.260.0080.00816.26
7.3.250.0090.00816.52
7.3.240.0080.00816.34
7.3.230.0110.00716.49
7.3.210.0120.00616.53
7.3.200.0100.00719.39
7.3.190.0000.01716.44
7.3.180.0060.00916.52
7.3.170.0060.01016.27
7.3.160.0130.00716.46
7.3.120.0100.00614.45
7.3.00.0070.00316.33
7.2.330.0140.00316.81
7.2.320.0150.00716.62
7.2.310.0070.01016.75
7.2.300.0130.00316.78
7.2.290.0090.01316.42
7.2.130.0040.01216.57
7.2.120.0040.01116.96
7.2.110.0080.00816.79
7.2.100.0030.00616.64
7.2.90.0050.00516.87
7.2.80.0080.00816.80
7.2.70.0000.01117.08
7.2.60.0050.00716.90
7.2.50.0030.00616.74
7.2.40.0000.00816.88
7.2.30.0000.01316.91
7.2.20.0110.00417.04
7.2.10.0000.01516.63
7.2.00.0050.00818.02
7.1.250.0090.00615.71
7.1.240.0060.00315.87
7.1.230.0100.00315.38
7.1.220.0040.00815.77
7.1.210.0090.00315.84
7.1.200.0050.00915.83
7.1.190.0070.00715.69
7.1.180.0040.00815.71
7.1.170.0030.00715.65
7.1.160.0030.01015.59
7.1.150.0040.00815.77
7.1.140.0060.00615.88
7.1.130.0030.01015.79
7.1.120.0040.00415.83
7.1.110.0080.00315.80
7.1.100.0030.00816.84
7.1.90.0000.00815.89
7.1.80.0000.01415.84
7.1.70.0020.00916.47
7.1.60.0100.00817.58
7.1.50.0100.00816.37
7.1.40.0070.00315.64
7.1.30.0090.00315.91
7.1.20.0060.00615.60
7.1.10.0060.00315.68
7.1.00.0020.04019.04
7.0.330.0080.00015.25
7.0.320.0040.00815.47
7.0.310.0100.00315.06
7.0.300.0040.00714.98
7.0.290.0030.01015.49
7.0.280.0030.00915.07
7.0.270.0060.00315.45
7.0.260.0040.00415.48
7.0.250.0000.01015.51
7.0.240.0030.00915.09
7.0.230.0100.00615.08
7.0.220.0120.00015.19
7.0.210.0100.00315.31
7.0.200.0010.00815.99
7.0.190.0000.01015.26
7.0.180.0030.00915.16
7.0.170.0040.00815.34
7.0.160.0000.00815.36
7.0.150.0000.00815.29
7.0.140.0050.03818.66
7.0.130.0000.01415.03
7.0.120.0030.01015.46
7.0.110.0000.01315.27
7.0.100.0180.03217.71
7.0.90.0080.02617.62
7.0.80.0060.04117.64
7.0.70.0000.03217.64
7.0.60.0200.04017.57
7.0.50.0070.03017.92
7.0.40.0080.02816.82
7.0.30.0050.02816.74
7.0.20.0020.03716.51
7.0.10.0070.03816.71
7.0.00.0050.03116.66
5.6.380.0070.00314.21
5.6.370.0060.00613.86
5.6.360.0030.00714.18
5.6.350.0080.00414.36
5.6.340.0040.00814.28
5.6.330.0060.00313.91
5.6.320.0100.00313.91
5.6.310.0030.00614.50
5.6.300.0060.00314.46
5.6.290.0060.00313.97
5.6.280.0080.03717.55
5.6.270.0030.00614.31
5.6.260.0030.00914.21
5.6.250.0000.03317.41
5.6.240.0020.04717.51
5.6.230.0030.03117.51
5.6.220.0070.03017.41
5.6.210.0080.03317.48
5.6.200.0060.02517.73
5.6.190.0110.03317.66
5.6.180.0070.02317.74
5.6.170.0030.03317.58
5.6.160.0020.04717.71
5.6.150.0080.02817.62
5.6.140.0140.03917.49
5.6.130.0080.04117.71
5.6.120.0150.02617.52
5.6.110.0050.03717.59
5.6.100.0050.02717.59
5.6.90.0150.03617.61
5.6.80.0070.02217.22
5.6.70.0080.02317.29
5.6.60.0090.03217.27
5.6.50.0100.02517.21
5.6.40.0050.02217.29
5.6.30.0050.02517.31
5.6.20.0040.02717.19
5.6.10.0030.03217.11
5.6.00.0100.02717.32
5.5.380.0050.02815.71
5.5.370.0050.03215.79
5.5.360.0110.02815.86
5.5.350.0020.04415.70
5.5.340.0030.02615.90
5.5.330.0040.04015.95
5.5.320.0020.03215.95
5.5.310.0080.04016.04
5.5.300.0100.03515.90
5.5.290.0050.04515.95
5.5.280.0080.04515.99
5.5.270.0050.03315.89
5.5.260.0080.03015.85
5.5.250.0010.02815.82
5.5.240.0080.02015.68
5.5.230.0000.04515.53
5.5.220.0050.03515.61
5.5.210.0090.03615.63
5.5.200.0110.01515.52
5.5.190.0070.02115.66
5.5.180.0040.02615.50
5.5.170.0060.00310.90
5.5.160.0060.03215.52
5.5.150.0100.03715.69
5.5.140.0020.03215.56
5.5.130.0030.02315.66
5.5.120.0050.02515.56
5.5.110.0050.04015.70
5.5.100.0050.04015.70
5.5.90.0060.03715.55
5.5.80.0090.03315.69
5.5.70.0120.02715.48
5.5.60.0170.03015.53
5.5.50.0030.02315.60
5.5.40.0070.03215.53
5.5.30.0020.02815.53
5.5.20.0050.04215.59
5.5.10.0050.02015.47
5.5.00.0020.02815.55
5.4.450.0100.03315.25
5.4.440.0030.04015.10
5.4.430.0050.02215.27
5.4.420.0050.02915.16
5.4.410.0050.03015.07
5.4.400.0000.03015.06
5.4.390.0030.04115.02
5.4.380.0080.03015.05
5.4.370.0050.03614.99
5.4.360.0050.02215.00
5.4.350.0000.02815.08
5.4.340.0030.03115.07
5.4.330.0100.00011.03
5.4.320.0060.02115.11
5.4.310.0050.02215.02
5.4.300.0070.02814.96
5.4.290.0030.02315.02
5.4.280.0030.03815.02
5.4.270.0050.03315.06
5.4.260.0070.03815.04
5.4.250.0030.04015.01
5.4.240.0060.03315.07
5.4.230.0080.03315.07
5.4.220.0060.03015.05
5.4.210.0090.03214.92
5.4.200.0030.02515.19
5.4.190.0050.03115.06
5.4.180.0060.02814.90
5.4.170.0050.03015.08
5.4.160.0030.03014.96
5.4.150.0020.03315.19
5.4.140.0070.02813.83
5.4.130.0050.02113.88
5.4.120.0080.02013.73
5.4.110.0050.04013.70
5.4.100.0010.02413.58
5.4.90.0110.02013.66
5.4.80.0030.02313.71
5.4.70.0050.01813.78
5.4.60.0030.03313.69
5.4.50.0100.02213.69
5.4.40.0040.04213.73
5.4.30.0020.03913.73
5.4.20.0070.01713.71
5.4.10.0030.03913.70
5.4.00.0070.02713.49
5.3.290.0030.02712.79
5.3.280.0080.02512.71
5.3.270.0070.02712.72
5.3.260.0060.02112.71
5.3.250.0030.02412.81
5.3.240.0030.02512.78
5.3.230.0040.02212.76
5.3.220.0020.02612.73
5.3.210.0070.03212.69
5.3.200.0050.03312.69
5.3.190.0010.04212.75
5.3.180.0050.02212.75
5.3.170.0070.02312.71
5.3.160.0080.03312.70
5.3.150.0050.02612.73
5.3.140.0060.02612.70
5.3.130.0030.04312.71
5.3.120.0060.03812.72
5.3.110.0030.02312.69
5.3.100.0070.03712.53
5.3.90.0050.03312.49
5.3.80.0020.02812.41
5.3.70.0050.03812.42
5.3.60.0120.02712.52
5.3.50.0020.04012.47
5.3.40.0060.02512.38
5.3.30.0050.02212.39
5.3.20.0070.02912.32
5.3.10.0040.03012.23
5.3.00.0000.02912.22
5.2.170.0040.02711.04
5.2.160.0050.02710.99
5.2.150.0060.03111.04
5.2.140.0020.02611.05
5.2.130.0090.02411.04
5.2.120.0030.01811.00
5.2.110.0000.02710.94
5.2.100.0050.01511.05
5.2.90.0050.01910.94
5.2.80.0030.01810.94
5.2.70.0010.02611.03
5.2.60.0060.02110.91
5.2.50.0020.02010.99
5.2.40.0050.01510.88
5.2.30.0030.01810.98
5.2.20.0060.01310.90
5.2.10.0070.01510.91
5.2.00.0070.01310.77
5.1.60.0020.01610.44
5.1.50.0030.01610.44
5.1.40.0020.01610.35
5.1.30.0020.01610.63
5.1.20.0000.01710.65
5.1.10.0040.01010.53
5.1.00.0020.01410.53
5.0.50.0020.01110.24
5.0.40.0030.01210.24
5.0.30.0030.01310.24
5.0.20.0020.01010.24
5.0.10.0010.01010.24
5.0.00.0010.01410.24
4.4.90.0000.01410.24
4.4.80.0030.01210.24
4.4.70.0020.00810.24
4.4.60.0000.01110.24
4.4.50.0020.01010.24
4.4.40.0030.01310.24
4.4.30.0030.00810.24
4.4.20.0000.01010.24
4.4.10.0030.00810.24
4.4.00.0030.01210.24
4.3.110.0040.00510.24
4.3.100.0020.00810.24
4.3.90.0020.00710.24
4.3.80.0070.00810.24
4.3.70.0030.00810.24
4.3.60.0020.01010.24
4.3.50.0010.00810.24
4.3.40.0020.01110.24
4.3.30.0000.01010.24
4.3.20.0020.00910.24
4.3.10.0020.00710.24
4.3.00.0000.00910.24

preferences:
74.06 ms | 401 KiB | 5 Q