3v4l.org

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