3v4l.org

run code in 300+ PHP versions simultaneously
<?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>'; preg_replace('/style="[^"]*"/', '', html);
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: Undefined constant "html" in /in/0U45U:4 Stack trace: #0 {main} thrown in /in/0U45U on line 4
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: Use of undefined constant html - assumed 'html' (this will throw an Error in a future version of PHP) in /in/0U45U on line 4
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33
Notice: Use of undefined constant html - assumed 'html' in /in/0U45U on line 4

preferences:
208.11 ms | 402 KiB | 329 Q