@ 2014-06-11T17:37:11Z <?php
var $search = array(
'/$/',
"/\r/", // Non-legal carriage return
"/[\n\t]+/", // Newlines and tabs
'/[ ]{2,}/', // Runs of spaces, pre-handling
'/<script[^>]*>.*?<\/script>/i', // <script>s -- which strip_tags supposedly has problems with
'/<style[^>]*>.*?<\/style>/i', // <style>s -- which strip_tags supposedly has problems with
//'/<!-- .* -->/', // Comments -- which strip_tags might have problem a with
'/<h[123][^>]*>(.*?)<\/h[123]>/i', // H1 - H3
'/<h[456][^>]*>(.*?)<\/h[456]>/ie', // H4 - H6
'/<p[^>]*>/i', // <P>
'/<br[^>]*>/i', // <br>
'/<b[^>]*>(.*?)<\/b>/i', // <b>
'/<strong[^>]*>(.*?)<\/strong>/i', // <strong>
'/<i[^>]*>(.*?)<\/i>/i', // <i>
'/<em[^>]*>(.*?)<\/em>/i', // <em>
'/(<ul[^>]*>|<\/ul>)/i', // <ul> and </ul>
'/(<ol[^>]*>|<\/ol>)/i', // <ol> and </ol>
'/<li[^>]*>(.*?)<\/li>/i', // <li> and </li>
'/<li[^>]*>/i', // <li>
// '/<a [^>]*href="(.*?)([^"]+)"[^>]*><\/a>/ie',
'/<a [^>]*href="([^"]+)"[^>]*>(.*?)<\/a>/ie',
// <a href="">
'/<hr[^>]*>/i', // <hr>
'/(<table[^>]*>|<\/table>)/i', // <table> and </table>
'/(<tr[^>]*>|<\/tr>)/i', // <tr> and </tr>
'/<td[^>]*>(.*?)<\/td>/i', // <td> and </td>
'/<th[^>]*>(.*?)<\/th>/i', // <th> and </th>
'/&(nbsp|#160);/i', // Non-breaking space
'/&(quot|rdquo|ldquo|#8220|#8221|#147|#148);/i',
// Double quotes
'/&(apos|rsquo|lsquo|#8216|#8217);/i', // Single quotes
'/>/i', // Greater-than
'/</i', // Less-than
'/&(amp|#38);/i', // Ampersand
'/&(copy|#169);/i', // Copyright
'/&(trade|#8482|#153);/i', // Trademark
'/&(reg|#174);/i', // Registered
'/&(mdash|#151|#8212);/i', // mdash
'/&(ndash|minus|#8211|#8722);/i', // ndash
'/&(bull|#149|#8226);/i', // Bullet
'/&(pound|#163);/i', // Pound sign
'/&(euro|#8364);/i', // Euro sign
//'/&[^&;]+;/i', // Unknown/unhandled entities
'/&[a-z0-9#]{1,10};/i', // Unknown/unhandled entities
'/[ ]{2,}/' // Runs of spaces, post-handling
);
/**
* List of pattern replacements corresponding to patterns searched.
*
* @var array $replace
* @access public
* @see $search
*/
var $replace = array(
'$',
'', // Non-legal carriage return
' ', // Newlines and tabs
' ', // Runs of spaces, pre-handling
'', // <script>s -- which strip_tags supposedly has problems with
'', // <style>s -- which strip_tags supposedly has problems with
//'', // Comments -- which strip_tags might have problem a with
"\n\n\\1\n\n", // H1 - H3
"ucwords(\"\n\n\\1\n\n\")", // H4 - H6
"\n\n\t", // <P>
"\n", // <br>
"\\1", // <b>
"\\1", // <strong>
'_\\1_', // <i>
'_\\1_', // <em>
"\n\n", // <ul> and </ul>
"\n\n", // <ol> and </ol>
"\t* \\1\n", // <li> and </li>
"\n\t* ", // <li>
'$this->_build_link_list("\\1", "\\2")',
// <a href="">
"\n-------------------------\n", // <hr>
"\n\n", // <table> and </table>
"\n", // <tr> and </tr>
"\t\t\\1\n", // <td> and </td>
"\t\t\\1\n", // <th> and </th>
' ', // Non-breaking space
'"', // Double quotes
"'", // Single quotes
'>',
'<',
'&',
'(c)',
'(tm)',
'(R)',
'--',
'-',
'*',
'▒',
'EUR', // Euro sign. . ?
'', // Unknown/unhandled entities
' ' // Runs of spaces, post-handling
);
var_dump(preg_replace($search, $replace, "&36;"));
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
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).
Version System time (s) User time (s) Memory (MiB) 5.4.29 0.011 0.037 12.48 5.4.28 0.007 0.038 12.37 5.4.27 0.009 0.034 12.38 5.4.26 0.010 0.046 12.37 5.4.25 0.013 0.068 12.37 5.4.24 0.009 0.037 12.38 5.4.23 0.004 0.042 12.37 5.4.22 0.007 0.038 12.37 5.4.21 0.004 0.039 12.37 5.4.20 0.009 0.043 12.36 5.4.19 0.006 0.037 12.36 5.4.18 0.004 0.040 12.36 5.4.17 0.015 0.038 12.37 5.4.16 0.009 0.047 12.36 5.4.15 0.011 0.043 12.36 5.4.14 0.007 0.051 12.05 5.4.13 0.009 0.036 12.04 5.4.12 0.013 0.045 12.00 5.4.11 0.011 0.041 12.00 5.4.10 0.009 0.035 12.00 5.4.9 0.009 0.036 12.00 5.4.8 0.004 0.044 12.00 5.4.7 0.007 0.045 11.99 5.4.6 0.006 0.043 11.99 5.4.5 0.007 0.039 11.99 5.4.4 0.009 0.047 11.98 5.4.3 0.008 0.046 11.97 5.4.2 0.009 0.042 11.97 5.4.1 0.007 0.040 11.98 5.4.0 0.004 0.037 11.47 5.3.28 0.008 0.045 12.71 5.3.27 0.007 0.059 12.72 5.3.26 0.008 0.040 12.72 5.3.25 0.018 0.088 12.72 5.3.24 0.017 0.067 12.72 5.3.23 0.009 0.048 12.71 5.3.22 0.008 0.049 12.68 5.3.21 0.003 0.044 12.68 5.3.20 0.007 0.046 12.68 5.3.19 0.005 0.042 12.68 5.3.18 0.006 0.040 12.67 5.3.17 0.007 0.036 12.67 5.3.16 0.006 0.037 12.68 5.3.15 0.006 0.045 12.68 5.3.14 0.010 0.049 12.66 5.3.13 0.005 0.044 12.66 5.3.12 0.007 0.044 12.66 5.3.11 0.003 0.047 12.66 5.3.10 0.005 0.038 12.12 5.3.9 0.004 0.038 12.08 5.3.8 0.004 0.039 12.08 5.3.7 0.008 0.034 12.07 5.3.6 0.009 0.045 12.06 5.3.5 0.007 0.039 12.00 5.3.4 0.016 0.047 12.00 5.3.3 0.012 0.048 11.95 5.3.2 0.011 0.046 11.73 5.3.1 0.008 0.049 11.70 5.3.0 0.006 0.036 11.68
preferences:dark mode live preview
149.74 ms | 1394 KiB | 7 Q