hiphop-php /hphp/test/zend/bad/ext/pcre/tests/preg_replace.php

Language PHP Lines 12
MD5 Hash 0de598def8eb9eacba2ed0ac2ea76baa Estimated Cost $104 (why?)
Repository git://github.com/facebook/hiphop-php.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
<?php

var_dump(preg_replace('{{\D+}}', 'x', '{abcd}'));
var_dump(preg_replace('{{\D+}}', 'ddd', 'abcd'));

var_dump(preg_replace('/(ab)(c)(d)(e)(f)(g)(h)(i)(j)(k)/', 'a${1}2$103', 'zabcdefghijkl'));

var_dump(preg_replace_callback('//e', '', ''));

var_dump(preg_replace_callback('//e', 'strtolower', ''));

?>
Back to Top