3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lt = '&lt;'; $gt = '&gt;'; $raw_data = '[if lte IE 8]&gt;&lt;link href=&quot;//d3h5jhobc20ump.cloudfront.net/f521cb9cec0171e8d913538552d98b10.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&lt;![endif]'; echo htmlspecialchars(preg_replace('/^\\s*\\[\\s*(if)(\\s[^\\]]*?)?\\s*\\]'.$gt.'\\s*(.*?)\\s*'.$lt.'!\\[\\s*(endif)\\s*\\]\\s*$/si', '[$1$2]'.$gt."\r\n".'$3'."\r\n".$lt.'![$4]', $raw_data));

preferences:
33.71 ms | 402 KiB | 5 Q