3v4l.org

run code in 300+ PHP versions simultaneously
<?php $type = 'string'; $name = 'test'; echo str_replace(['%type%', '%name%'], [$type, $name], '* @param %type% %name%');

preferences:
42.72 ms | 402 KiB | 5 Q