3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $html = '<body> <p style="text-align:left;text-indent:0pt;margin:12pt 0pt 12pt 0pt;"><span style="color:#000000;background-color:transparent;font-family:Times New Roman;font-size:12pt;font-weight:normal;font-style:normal;">&nbsp;Какво да ви </span><span style="color:#000000;background-color:transparent;font-family:Times New Roman;font-size:12pt;font-weight:bold;font-style:normal;">кажа</span></p><p style="text-align:left;text-indent:0pt;margin:12pt 0pt 12pt 0pt;"><span style="color:#000000;background-color:transparent;font-family:Times New Roman;font-size:12pt;font-weight:bold;font-style:normal;">Не!</span></p></body>'; echo preg_replace('/style="[^"]*"/', '', $html); php?>
based on 0U45U
Output for 7.2.0
<body> <p ><span >&nbsp;Какво да ви </span><span >кажа</span></p><p ><span >Не!</span></p></body> Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /in/V5Bi9 on line 7
Output for 5.3.21 - 7.1.10
<body> <p ><span >&nbsp;Какво да ви </span><span >кажа</span></p><p ><span >Не!</span></p></body> Notice: Use of undefined constant php - assumed 'php' in /in/V5Bi9 on line 7