I guess i'd use something like this?
PHP Code:
// [QUOTE=XXX]
$bbcodes['custom']['find']['[php='] = '#\[php=("|"|\'|)(.*)\\1\](<br>|<br />|\r\n|\n|\r)??(.*)(<br>|<br />|\r\n|\n|\r)??\[/php\]#esiU';
$bbcodes['custom']['replace']['[php='] = "handle_bbcode_php('\\4', '\\2')";
$bbcodes['custom']['recurse']['php'][1] = array('handler' => 'handle_bbcode_php');
Not sure if i'm even close. lol