3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "define('DB_PASSWORD', '12345')"; $b = 'define("DB_PASSWORD", "12345")'; $c = 'DEFINE("DB_PASSWORD", "12345")'; $d = "DEFINE('DB_PASSWORD', '12345')"; echo preg_replace('/define\([\'\"]db_password[\'\"],\s*[\'\"]123456[\'\"]/', 'define("DB_PASSWORD", "123456")', $a);
based on 7o6Ln
Output for 4.3.0 - 7.2.0
define('DB_PASSWORD', '12345')