3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $argv[1] = "-00010.1"; #print ".01"; $s=1; ($_=$argv[1])[0]=='-'?$_[0]=0:''; print $_;
Output for 7.0.0 - 7.2.0
000010.1
Output for 5.3.22 - 5.6.28
Parse error: syntax error, unexpected '[' in /in/IQIb2 on line 13
Process exited with code 255.