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>'; echo preg_replace('/style="[^"]*"/', '', $html); php?>
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
<body> <p ><span >&nbsp;Какво да ви </span><span >кажа</span></p><p ><span >Не!</span></p></body> Fatal error: Uncaught Error: Undefined constant "php" in /in/V5Bi9:7 Stack trace: #0 {main} thrown in /in/V5Bi9 on line 7
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
<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.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25
<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

preferences:
174.54 ms | 402 KiB | 198 Q