E' possibile fare una funzione che richiama una funzione leggendo una stringa?

Ad esempio:

Codice PHP:
miafunzione('Mio Testo [test:500] Mio Testo'); 
restituisce

Mio Testo
Codice PHP:
test(500); 
Mio testo

dove test() è una funzione precedentemente dichiarata