3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(\d+)/m'; $str = 'JS35BX54NV33'; $subst = ' $1 '; $result = preg_replace($re, $subst, $str); echo "The result of the substitution is ".$result;

preferences:
34.56 ms | 404 KiB | 5 Q