3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace('/\[(\w+):\s?(\w+.\w+)]/',"<$1 src='$2' />","[img: something.jpg]");

preferences:
73.24 ms | 404 KiB | 5 Q