3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ptn = "/^+44/"; // Regex $str = "+447738351383"; //Your input, perhaps $_POST['textbox'] or whatever $rpltxt = "0"; // Replacement string echo preg_replace($ptn, $rpltxt, $str); ?>

preferences:
25.93 ms | 402 KiB | 5 Q