3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sTAGS($textNt, $prm) { $text = trim($textNt); echo strip_tags($text, $prm); //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>"); ?>

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.0000.01516.50
8.3.60.0100.01018.41
8.3.50.0100.00922.00
8.3.40.0110.00718.64
8.3.30.0070.00719.15
8.3.20.0060.00320.16
8.3.10.0040.00423.61
8.3.00.0030.00620.90
8.2.180.0140.00018.54
8.2.170.0040.01122.96
8.2.160.0140.00020.39
8.2.150.0120.00624.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0050.00222.13
8.2.110.0030.00622.30
8.2.100.0070.00417.72
8.2.90.0030.00619.05
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0000.01118.05
8.2.50.0030.00618.07
8.2.40.0070.00417.97
8.2.30.0000.00718.24
8.2.20.0000.00817.66
8.2.10.0050.00218.17
8.2.00.0000.01017.56
8.1.280.0030.01025.92
8.1.270.0040.00422.09
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.77
8.1.230.0000.01119.04
8.1.220.0080.00017.78
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0040.00417.00
8.1.180.0050.00318.10
8.1.170.0080.00018.49
8.1.160.0070.00022.00
8.1.150.0070.00018.43
8.1.140.0040.00417.33
8.1.130.0070.00017.71
8.1.120.0030.00317.42
8.1.110.0030.00617.41
8.1.100.0040.00417.41
8.1.90.0050.00217.45
8.1.80.0040.00417.38
8.1.70.0070.00017.28
8.1.60.0090.00017.58
8.1.50.0000.00817.46
8.1.40.0000.01017.52
8.1.30.0050.00317.71
8.1.20.0080.00017.73
8.1.10.0000.00717.54
8.1.00.0040.00417.46
8.0.300.0040.00420.60
8.0.290.0000.00717.05
8.0.280.0030.00318.32
8.0.270.0000.00717.28
8.0.260.0030.00317.26
8.0.250.0030.00316.93
8.0.240.0060.00317.03
8.0.230.0000.00716.91
8.0.220.0000.00616.75
8.0.210.0030.00316.71
8.0.200.0080.00016.84
8.0.190.0040.00416.90
8.0.180.0040.00416.77
8.0.170.0040.00416.82
8.0.160.0040.00416.84
8.0.150.0030.00516.69
8.0.140.0040.00416.84
8.0.130.0000.00513.27
8.0.120.0040.00416.82
8.0.110.0000.00716.86
8.0.100.0000.00916.95
8.0.90.0050.00216.70
8.0.80.0040.01216.81
8.0.70.0000.00716.85
8.0.60.0080.00016.81
8.0.50.0000.00716.80
8.0.30.0060.01316.94
8.0.20.0120.00917.40
8.0.10.0040.00416.86
8.0.00.0080.01316.55
7.4.330.0000.00415.00
7.4.320.0030.00316.47
7.4.300.0000.00616.51
7.4.290.0050.00316.52
7.4.280.0050.00316.36
7.4.270.0000.00716.57
7.4.260.0030.00316.52
7.4.250.0000.00716.56
7.4.240.0020.00516.53
7.4.230.0030.00316.71
7.4.220.0090.01216.47
7.4.210.0100.00916.68
7.4.200.0030.00316.61
7.4.190.0000.00716.46
7.4.160.0180.00016.40
7.4.150.0100.01017.40
7.4.140.0150.00317.86
7.4.130.0090.01116.36
7.4.120.0070.01016.41
7.4.110.0050.01116.32
7.4.100.0100.00716.49
7.4.90.0060.01316.49
7.4.80.0130.01319.39
7.4.70.0170.00016.34
7.4.60.0100.01016.41
7.4.50.0030.00516.23
7.4.40.0100.00716.49
7.4.30.0110.00716.48
7.4.00.0110.00414.81
7.3.330.0000.00513.11
7.3.320.0030.00313.09
7.3.310.0030.00316.25
7.3.300.0030.00316.20
7.3.290.0090.00616.24
7.3.280.0080.01216.25
7.3.270.0120.01217.40
7.3.260.0090.00916.25
7.3.250.0060.01016.40
7.3.240.0110.01116.33
7.3.230.0170.00016.39
7.3.210.0150.00316.46
7.3.200.0080.00819.39
7.3.190.0090.00916.30
7.3.180.0060.00916.25
7.3.170.0090.00616.50
7.3.160.0090.00616.57
7.3.120.0030.01414.45
7.3.00.0000.01216.56
7.2.330.0030.01316.64
7.2.320.0040.01816.68
7.2.310.0110.00616.77
7.2.300.0100.00716.66
7.2.290.0120.01216.46
7.2.130.0070.00416.52
7.2.120.0000.01416.66
7.2.110.0040.00416.70
7.2.100.0100.00316.97
7.2.90.0070.00716.86
7.2.80.0080.00616.70
7.2.70.0100.00316.87
7.2.60.0040.00816.94
7.2.50.0030.01016.78
7.2.40.0030.01316.86
7.2.30.0040.01116.90
7.2.20.0040.01416.78
7.2.10.0120.00316.86
7.2.00.0040.01116.85
7.1.250.0070.00315.62
7.1.240.0090.00315.72
7.1.230.0040.01115.70
7.1.220.0130.00015.31
7.1.210.0090.00415.57
7.1.200.0040.01215.77
7.1.190.0030.00915.78
7.1.180.0070.00415.65
7.1.170.0000.00915.93
7.1.160.0080.00615.59
7.1.150.0030.00615.72
7.1.140.0030.00715.71
7.1.130.0000.01315.59
7.1.120.0030.00615.84
7.1.110.0040.00815.70
7.1.100.0050.00816.98
7.1.90.0070.00715.72
7.1.80.0070.00715.83
7.1.70.0020.01016.49
7.1.60.0050.01217.63
7.1.50.0070.01216.04
7.1.40.0040.01115.75
7.1.30.0090.00015.78
7.1.20.0060.00615.61
7.1.10.0070.00715.49
7.1.00.0030.04219.19
7.0.330.0070.00315.04
7.0.320.0060.00615.28
7.0.310.0080.00415.05
7.0.300.0030.00615.25
7.0.290.0030.01015.30
7.0.280.0100.00315.36
7.0.270.0080.00315.19
7.0.260.0060.00615.30
7.0.250.0030.00615.44
7.0.240.0000.01215.21
7.0.230.0060.00615.22
7.0.220.0060.00615.33
7.0.210.0120.00015.13
7.0.200.0040.00615.96
7.0.190.0030.00615.30
7.0.180.0030.00615.01
7.0.170.0030.01015.07
7.0.160.0030.00915.19
7.0.150.0000.00915.41
7.0.140.0020.04018.73
7.0.130.0090.00315.14
7.0.120.0060.00915.35
7.0.110.0030.00715.52
7.0.100.0090.04417.66
7.0.90.0140.03917.48
7.0.80.0030.04817.51
7.0.70.0040.04217.68
7.0.60.0070.02717.62
7.0.50.0050.03717.95
7.0.40.0080.04416.73
7.0.30.0030.05116.75
7.0.20.0080.03316.71
7.0.10.0100.04316.73
7.0.00.0120.04016.77
5.6.380.0060.00314.39
5.6.370.0090.00314.21
5.6.360.0070.00714.29
5.6.350.0060.00614.00
5.6.340.0000.01214.37
5.6.330.0060.01014.08
5.6.320.0100.00613.94
5.6.310.0090.00614.03
5.6.300.0100.00314.04
5.6.290.0110.00014.32
5.6.280.0050.04117.73
5.6.270.0070.00313.96
5.6.260.0000.01014.20
5.6.250.0100.04217.46
5.6.240.0020.05417.32
5.6.230.0050.04317.35
5.6.220.0050.02417.28
5.6.210.0020.04617.25
5.6.200.0080.04217.58
5.6.190.0140.03817.67
5.6.180.0100.04317.63
5.6.170.0070.02817.44
5.6.160.0080.04317.53
5.6.150.0130.03517.67
5.6.140.0060.04517.71
5.6.130.0090.04117.58
5.6.120.0100.04217.57
5.6.110.0080.03517.66
5.6.100.0080.03717.67
5.6.90.0080.03317.52
5.6.80.0070.03217.26
5.6.70.0090.03017.23
5.6.60.0030.04517.24
5.6.50.0050.04717.22
5.6.40.0070.04217.43
5.6.30.0080.02717.19
5.6.20.0050.03417.29
5.6.10.0060.04117.25
5.6.00.0080.03117.18
5.5.380.0030.04315.49
5.5.370.0030.04715.57
5.5.360.0030.02615.72
5.5.350.0040.04015.59
5.5.340.0070.04115.99
5.5.330.0050.02815.90
5.5.320.0070.04415.74
5.5.310.0040.04516.12
5.5.300.0060.02515.98
5.5.290.0030.03415.84
5.5.280.0070.04316.07
5.5.270.0060.03015.99
5.5.260.0050.04615.71
5.5.250.0070.04215.71
5.5.240.0070.02415.70
5.5.230.0020.02515.54
5.5.220.0050.03215.46
5.5.210.0070.04315.52
5.5.200.0060.03315.61
5.5.190.0060.04215.37
5.5.180.0110.02215.55
5.5.170.0000.00611.04
5.5.160.0020.04515.58
5.5.150.0050.03515.40
5.5.140.0060.04015.69
5.5.130.0030.04415.56
5.5.120.0000.04015.63
5.5.110.0070.03315.58
5.5.100.0030.04515.56
5.5.90.0040.02515.65
5.5.80.0070.03515.61
5.5.70.0030.02715.52
5.5.60.0020.04215.64
5.5.50.0060.03815.37
5.5.40.0050.03915.37
5.5.30.0020.02315.48
5.5.20.0050.02315.52
5.5.10.0030.02215.66
5.5.00.0050.02015.50
5.4.450.0070.03815.15
5.4.440.0050.03515.22
5.4.430.0040.03615.30
5.4.420.0050.04115.12
5.4.410.0110.01815.15
5.4.400.0050.04215.02
5.4.390.0020.02714.92
5.4.380.0070.03714.88
5.4.370.0100.03514.90
5.4.360.0060.02914.83
5.4.350.0070.02514.87
5.4.340.0070.03215.02
5.4.330.0030.00310.80
5.4.320.0000.04514.88
5.4.310.0080.03114.83
5.4.300.0080.02214.83
5.4.290.0050.03414.99
5.4.280.0080.02715.07
5.4.270.0070.03815.21
5.4.260.0090.03314.88
5.4.250.0000.02514.95
5.4.240.0080.03615.12
5.4.230.0070.02715.05
5.4.220.0000.02814.92
5.4.210.0090.02514.90
5.4.200.0040.02214.91
5.4.190.0070.02015.06
5.4.180.0090.01515.10
5.4.170.0020.02514.73
5.4.160.0020.02115.04
5.4.150.0060.02014.86
5.4.140.0050.01813.55
5.4.130.0050.01913.72
5.4.120.0030.02113.39
5.4.110.0050.01813.76
5.4.100.0050.02213.70
5.4.90.0050.03113.71
5.4.80.0030.03813.65
5.4.70.0070.03313.79
5.4.60.0070.03713.78
5.4.50.0030.02013.58
5.4.40.0050.02013.77
5.4.30.0040.03813.77
5.4.20.0050.03513.66
5.4.10.0070.03213.60
5.4.00.0080.02213.51
5.3.290.0070.04412.67
5.3.280.0080.03912.41
5.3.270.0050.01812.61
5.3.260.0000.02512.49
5.3.250.0010.02112.42
5.3.240.0030.02012.55
5.3.230.0000.02612.44
5.3.220.0030.02112.45
5.3.210.0050.01712.44
5.3.200.0070.01812.38
5.3.190.0030.02012.38
5.3.180.0020.03012.59
5.3.170.0030.02012.55
5.3.160.0020.02312.41
5.3.150.0060.01812.63
5.3.140.0050.03412.50
5.3.130.0020.02512.39
5.3.120.0080.03712.53
5.3.110.0020.02812.49
5.3.100.0030.03712.08
5.3.90.0000.02412.31
5.3.80.0020.02512.16
5.3.70.0050.02012.23
5.3.60.0030.03512.25
5.3.50.0140.02712.19
5.3.40.0050.01812.14
5.3.30.0060.01812.29
5.3.20.0060.03612.10
5.3.10.0030.01711.95
5.3.00.0030.02111.89
5.2.170.0000.01910.59
5.2.160.0020.01610.54
5.2.150.0030.01610.49
5.2.140.0030.02810.54
5.2.130.0020.02510.52
5.2.120.0050.01510.56
5.2.110.0030.01910.55
5.2.100.0030.01510.58
5.2.90.0070.02510.56
5.2.80.0020.01810.56
5.2.70.0060.01310.46
5.2.60.0000.02110.46
5.2.50.0000.01710.45
5.2.40.0000.02110.50
5.2.30.0060.01510.46
5.2.20.0070.01510.40
5.2.10.0020.01610.37
5.2.00.0060.01210.29
5.1.60.0030.0139.96
5.1.50.0020.0179.89
5.1.40.0040.01210.00
5.1.30.0010.01510.20
5.1.20.0030.01510.16
5.1.10.0000.01810.06
5.1.00.0020.02810.01
5.0.50.0020.0109.42
5.0.40.0040.0109.42
5.0.30.0020.0209.42
5.0.20.0020.0179.42
5.0.10.0010.0189.42
5.0.00.0050.0139.42
4.4.90.0000.0119.42
4.4.80.0030.0089.42
4.4.70.0030.0089.42
4.4.60.0000.0109.42
4.4.50.0020.0149.42
4.4.40.0040.0129.42
4.4.30.0030.0069.42
4.4.20.0000.0109.42
4.4.10.0020.0119.42
4.4.00.0020.0139.42
4.3.110.0020.0109.42
4.3.100.0020.0129.42
4.3.90.0010.0089.42
4.3.80.0000.0279.42
4.3.70.0050.0089.42
4.3.60.0020.0079.42
4.3.50.0010.0199.42
4.3.40.0010.0169.42
4.3.30.0000.0189.42
4.3.20.0020.0209.42
4.3.10.0060.0119.42
4.3.00.0020.0209.42

preferences:
37.84 ms | 401 KiB | 5 Q