3v4l.org

run code in 300+ PHP versions simultaneously
<?php function strip_html_tags( $text ) { $text = preg_replace( array( // Remove invisible content '@<head[^>]*?>.*?</head>@siu', '@<style[^>]*?>.*?</style>@siu', '@<script[^>]*?.*?</script>@siu', '@<object[^>]*?.*?</object>@siu', '@<embed[^>]*?.*?</embed>@siu', '@<applet[^>]*?.*?</applet>@siu', '@<noframes[^>]*?.*?</noframes>@siu', '@<noscript[^>]*?.*?</noscript>@siu', '@<noembed[^>]*?.*?</noembed>@siu' ), array( '', '', '', '', '', '', '', '', ''), $text ); return strip_tags( $text); } function make_safe($variable) { $variable = strip_html_tags($variable); $bad = array("=","<", ">", "/","\"","`","~","'","$","%","#"); $variable = str_replace($bad, "", $variable); $variable = (trim($variable)); $variable = str_replace(' ','',$variable); echo $variable; } make_safe("<b>Test-A bsatz. </b>"); ?>

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.40.0150.00018.88
8.3.30.0110.00419.22
8.3.20.0070.00020.13
8.3.10.0040.00423.48
8.3.00.0080.00020.95
8.2.170.0120.00322.96
8.2.160.0070.00720.39
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00420.57
8.2.110.0040.00422.36
8.2.100.0080.00318.22
8.2.90.0080.00019.35
8.2.80.0030.00617.97
8.2.70.0000.00817.63
8.2.60.0000.00917.93
8.2.50.0060.00318.07
8.2.40.0030.00620.07
8.2.30.0060.00318.23
8.2.20.0040.00418.04
8.2.10.0000.00818.29
8.2.00.0090.00018.04
8.1.270.0040.00421.89
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00319.39
8.1.230.0110.00018.97
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00717.36
8.1.190.0030.00617.38
8.1.180.0000.00818.10
8.1.170.0090.00018.62
8.1.160.0000.00721.99
8.1.150.0030.00518.77
8.1.140.0040.00417.66
8.1.130.0070.00017.80
8.1.120.0080.00017.50
8.1.110.0030.00617.55
8.1.100.0000.00717.49
8.1.90.0050.00317.56
8.1.80.0040.00817.41
8.1.70.0040.00417.52
8.1.60.0030.00617.76
8.1.50.0030.00617.69
8.1.40.0000.01317.57
8.1.30.0040.00417.79
8.1.20.0000.00917.86
8.1.10.0000.00917.57
8.1.00.0000.00817.66
8.0.300.0040.00418.77
8.0.290.0000.00717.30
8.0.280.0050.00318.47
8.0.270.0050.00217.28
8.0.260.0030.00317.21
8.0.250.0030.00317.17
8.0.240.0050.00317.17
8.0.230.0000.00817.16
8.0.220.0050.00217.07
8.0.210.0000.00817.05
8.0.200.0030.00317.10
8.0.190.0040.00417.05
8.0.180.0020.00517.05
8.0.170.0060.00317.11
8.0.160.0000.00716.93
8.0.150.0000.00816.95
8.0.140.0050.00216.95
8.0.130.0000.00613.52
8.0.120.0080.00017.11
8.0.110.0040.00417.09
8.0.100.0040.00417.18
8.0.90.0050.00217.02
8.0.80.0080.01217.11
8.0.70.0080.00016.99
8.0.60.0040.00416.92
8.0.50.0050.00216.92
8.0.30.0150.00417.47
8.0.20.0140.00617.40
8.0.10.0040.00417.07
8.0.00.0100.00817.04
7.4.330.0030.00315.00
7.4.320.0060.00016.71
7.4.300.0050.00216.71
7.4.290.0030.00316.86
7.4.280.0000.00716.81
7.4.270.0070.00016.84
7.4.260.0000.00716.79
7.4.250.0030.00516.75
7.4.240.0040.00316.83
7.4.230.0030.00316.78
7.4.220.0030.01416.92
7.4.210.0060.01016.83
7.4.200.0000.00716.70
7.4.190.0030.00316.98
7.4.160.0070.01016.55
7.4.150.0090.00917.40
7.4.140.0100.00917.86
7.4.130.0090.01016.91
7.4.120.0120.00716.74
7.4.110.0090.01116.55
7.4.100.0160.00416.70
7.4.90.0090.00916.78
7.4.80.0030.01619.39
7.4.70.0140.00316.86
7.4.60.0030.01716.52
7.4.50.0080.00016.75
7.4.40.0110.00616.61
7.4.30.0090.00616.55
7.4.00.0070.00914.93
7.3.330.0030.00313.52
7.3.320.0000.00513.38
7.3.310.0000.00816.62
7.3.300.0030.00316.48
7.3.290.0110.00416.54
7.3.280.0090.01016.50
7.3.270.0100.00617.40
7.3.260.0110.00616.63
7.3.250.0080.01016.67
7.3.240.0100.00716.52
7.3.230.0100.00716.50
7.3.210.0180.00316.61
7.3.200.0030.01919.39
7.3.190.0070.01116.77
7.3.180.0060.00916.94
7.3.170.0120.00316.57
7.3.160.0060.00916.59
7.3.120.0090.00814.97
7.3.110.0070.00714.98
7.3.100.0000.01615.07
7.3.90.0030.00714.97
7.3.80.0040.01114.97
7.3.70.0030.01315.05
7.3.60.0000.01415.15
7.3.50.0060.00915.00
7.3.40.0000.01614.90
7.3.30.0100.00315.12
7.3.20.0040.00716.86
7.3.10.0030.01016.88
7.3.00.0080.00317.01
7.2.330.0060.01216.77
7.2.320.0110.01116.84
7.2.310.0090.01216.89
7.2.300.0160.00716.81
7.2.290.0140.00716.79
7.2.250.0060.01315.26
7.2.240.0090.00915.27
7.2.230.0060.01015.07
7.2.220.0040.01115.36
7.2.210.0030.00915.17
7.2.200.0070.00315.28
7.2.190.0040.00814.91
7.2.180.0090.00615.21
7.2.170.0040.01215.14
7.2.00.0000.01019.76
7.1.330.0040.00916.07
7.1.320.0080.00815.96
7.1.310.0030.00916.20
7.1.300.0000.01615.97
7.1.290.0000.00915.95
7.1.280.0030.00715.96
7.1.270.0070.00415.90
7.1.260.0030.01015.89
7.1.200.0030.00916.23
7.1.100.0080.00418.34
7.1.70.0000.01017.15
7.1.60.0160.01319.46
7.1.50.0160.01017.29
7.1.00.0030.07322.34
7.0.200.0070.00716.72
7.0.140.0100.07022.09
7.0.110.0130.09019.98
7.0.100.0100.08019.90
7.0.90.0300.07020.00
7.0.80.0170.05719.98
7.0.70.0130.04719.96
7.0.60.0130.07719.95
7.0.50.0130.08019.89
7.0.40.0100.07319.85
7.0.30.0130.07319.72
7.0.20.0100.05019.68
7.0.10.0170.07019.78
7.0.00.0100.05019.77
5.6.280.0130.07321.02
5.6.260.0100.06720.60
5.6.250.0070.07320.74
5.6.240.0030.09020.71
5.6.230.0100.07020.70
5.6.220.0100.06320.49
5.6.210.0170.03720.79
5.6.200.0030.05020.57
5.6.190.0070.08320.60
5.6.180.0100.03320.58
5.6.170.0000.08020.65
5.6.160.0030.03720.61
5.6.150.0070.07020.57
5.6.140.0000.04320.69
5.6.130.0100.04320.58
5.6.120.0070.08320.57
5.6.110.0130.06720.58
5.6.100.0230.08320.61
5.6.90.0100.07720.55
5.6.80.0130.07720.24
5.6.70.0070.06020.00
5.6.60.0170.06720.00
5.6.50.0030.07020.08
5.6.40.0070.04320.01
5.6.30.0100.07319.92
5.6.20.0070.04720.07
5.6.10.0070.06719.98
5.6.00.0130.07319.92
5.5.380.0000.05017.68
5.5.370.0100.04017.57
5.5.360.0070.05317.67
5.5.350.0130.07017.65
5.5.340.0070.05318.09
5.5.330.0030.05018.22
5.5.320.0070.08017.87
5.5.310.0070.07718.13
5.5.300.0030.05018.25
5.5.290.0100.07318.07
5.5.280.0070.07018.13
5.5.270.0070.04318.07
5.5.260.0070.08318.08
5.5.250.0100.03718.05
5.5.240.0130.07317.62
5.5.230.0100.07717.29
5.5.220.0000.07717.29
5.5.210.0070.04717.51
5.5.200.0030.07317.49
5.5.190.0030.08017.30
5.5.180.0070.04317.44
5.5.160.0030.05317.20
5.5.150.0030.07717.26
5.5.140.0030.04017.28
5.5.130.0000.05017.43
5.5.120.0130.06717.60
5.5.110.0030.04717.26
5.5.100.0100.04017.39
5.5.90.0030.03717.20
5.5.80.0130.06317.50
5.5.70.0100.05317.31
5.5.60.0130.05317.29
5.5.50.0000.05017.48
5.5.40.0100.06317.33
5.5.30.0100.07017.37
5.5.20.0100.07317.29
5.5.10.0000.05717.20
5.5.00.0100.07317.46
5.4.450.0030.04019.36
5.4.440.0070.08019.36
5.4.430.0070.06319.58
5.4.420.0100.04319.32
5.4.410.0070.06319.33
5.4.400.0100.07319.19
5.4.390.0030.05019.31
5.4.380.0100.07019.18
5.4.370.0130.03319.35
5.4.360.0070.07019.14
5.4.350.0070.04719.19
5.4.340.0000.05019.32
5.4.320.0130.06319.09
5.4.310.0070.07018.99
5.4.300.0030.07319.00
5.4.290.0070.07019.14
5.4.280.0100.04019.16
5.4.270.0000.05319.01
5.4.260.0100.06719.22
5.4.250.0170.03719.04
5.4.240.0030.08319.00
5.4.230.0100.07319.30
5.4.220.0070.07319.23
5.4.210.0130.07318.98
5.4.200.0100.06019.33
5.4.190.0130.04319.33
5.4.180.0100.05018.98
5.4.170.0070.06019.13
5.4.160.0070.07318.99
5.4.150.0030.04719.16
5.4.140.0070.07316.52
5.4.130.0030.03716.56
5.4.120.0100.07316.59
5.4.110.0130.07716.33
5.4.100.0070.06716.43
5.4.90.0000.06716.46
5.4.80.0000.06016.46
5.4.70.0070.06716.46
5.4.60.0130.05716.55
5.4.50.0100.06716.63
5.4.40.0070.04016.60
5.4.30.0070.03716.41
5.4.20.0030.04316.39
5.4.10.0100.07016.62
5.4.00.0000.04316.00
5.3.290.0000.05314.65
5.3.280.0070.06014.73
5.3.270.0100.03314.63
5.3.260.0130.07014.66
5.3.250.0000.06314.57
5.3.240.0130.06014.69
5.3.230.0100.03314.61
5.3.220.0070.05314.70
5.3.210.0070.07714.60
5.3.200.0070.07714.80
5.3.190.0030.07314.59
5.3.180.0030.04014.57
5.3.170.0070.07014.61
5.3.160.0000.07714.68
5.3.150.0100.07014.61
5.3.140.0170.06714.65
5.3.130.0000.05714.79
5.3.120.0100.07014.55
5.3.110.0030.04014.78
5.3.100.0070.07714.05
5.3.90.0030.04714.06
5.3.80.0000.04314.05
5.3.70.0100.04314.06
5.3.60.0070.05013.98
5.3.50.0000.04013.95
5.3.40.0000.08013.98
5.3.30.0070.07313.94
5.3.20.0070.06013.72
5.3.10.0000.04013.74
5.3.00.0000.06313.50
5.2.170.0000.06712.07
5.2.160.0030.04712.07
5.2.150.0030.05312.07
5.2.140.0070.03312.07
5.2.130.0100.05712.07
5.2.120.0070.04712.07
5.2.110.0130.02012.07
5.2.100.0030.03712.07
5.2.90.0130.04712.07
5.2.80.0070.05312.07
5.2.70.0000.03312.07
5.2.60.0130.05312.07
5.2.50.0030.05312.07
5.2.40.0030.06312.07
5.2.30.0070.06012.07
5.2.20.0030.06012.07
5.2.10.0070.04012.07
5.2.00.0000.05712.07
5.1.60.0070.05312.07
5.1.50.0070.02712.07
5.1.40.0030.03712.07
5.1.30.0030.05312.07
5.1.20.0030.03312.07
5.1.10.0000.05012.07
5.1.00.0000.04712.07
5.0.50.0000.05012.07
5.0.40.0030.02712.07
5.0.30.0030.03312.07
5.0.20.0030.02012.07
5.0.10.0000.02712.07
5.0.00.0000.03312.07
4.4.90.0000.02312.07
4.4.80.0030.01712.07
4.4.70.0000.03012.07
4.4.60.0030.02312.07
4.4.50.0030.03312.07
4.4.40.0000.05312.07
4.4.30.0070.03312.07
4.4.20.0070.02712.07
4.4.10.0030.02712.07
4.4.00.0070.02312.07
4.3.110.0030.03012.07
4.3.100.0000.02012.07
4.3.90.0000.03712.07
4.3.80.0000.04312.07
4.3.70.0100.01712.07
4.3.60.0030.01712.07
4.3.50.0030.03312.07
4.3.40.0030.03712.07
4.3.30.0000.03712.07
4.3.20.0000.03312.07
4.3.10.0000.02712.07
4.3.00.0000.03712.07

preferences:
46.95 ms | 400 KiB | 5 Q