3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = [ 'zero' => 0.0, 'even' => 1.0, 'fraction' => 1.3 ]; var_dump(json_encode($data));
based on 0fRHc
Output for 5.5.0 - 7.3.0rc3
string(34) "{"zero":0,"even":1,"fraction":1.3}"