3v4l.org

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