3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $argv[1] = '-040.010'; $argv[1] = '-0000100.123400000'; echo strlen((explode('.',$t=trim('-'==($_=$argv[1])[0]?$n=$_=trim($_,'-'):$_,0)))).($t!==$_?($n?' -':' ').$t:'');
based on E7vDd
Output for 7.0.0 - 7.2.0
Warning: strlen() expects parameter 1 to be string, array given in /in/Z90sW on line 6 -100.1234
Output for 5.3.22 - 5.6.28
Parse error: syntax error, unexpected '[' in /in/Z90sW on line 6
Process exited with code 255.