3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '$descriptions.language_id = ? AND (x = true OR $xyz.pippo = ?)'; echo preg_replace_callback('#(\$([a-z0-1\._]+))#i', function($matches) { return strtoupper($matches[1]); }, $string);

preferences:
77.25 ms | 402 KiB | 5 Q