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:
33.12 ms | 402 KiB | 5 Q