3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array(); $data["int"] = 1; $data["string"] = "".1; print json_encode($data); ?>
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected '.1' (T_DNUMBER) in /in/si4cf on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_DNUMBER in /in/si4cf on line 4
Process exited with code 255.