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,'',1); echo 'entra'; } echo $valor_digital;
based on V8bNB
Output for 4.3.0 - 7.2.6
entra-