3v4l.org

run code in 300+ PHP versions simultaneously
<?php $domainNumber = "_3"; var_dump(substr($domainNumber, 0, 1)); if (substr($domainNumber, 0, 1) != '_') { $domainNumber = "_$domainNumber"; } var_dump($domainNumber);

preferences:
37.09 ms | 402 KiB | 5 Q