3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $valor_digital='-hola'; if (substr($valor_digital,0,1)=='-') $valor_digital=substr_replace($valor_digital,'',0,1); echo $valor_digital;
based on BiqO6
Output for 4.3.0 - 7.2.0
hola