3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $phone = preg_replace("/[^0-9]/", "", "600000005"); echo strlen(strval($phone)); if (strlen(strval($phone)) < 10) { echo "0$phone"; } else { echo strval($phone); }
based on EpKJr
Output for 4.3.0 - 7.2.6
90600000005