3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo json_encode(array('a' => 'sbi/1', 'b' => 2.00, 'c' => '0272561313', 'd' => 4200123, 'e' => 5, 'f' => '4200123'), JSON_UNESCAPED_SLASHES|JSON_PRESERVE_ZERO_FRACTION|JSON_BIGINT_AS_STRING); ?>
based on ck5T2
Output for 5.6.6 - 7.2.0
{"a":"sbi/1","b":2.0,"c":"0272561313","d":4200123,"e":5,"f":"4200123"}
Output for 5.5.0 - 5.6.5
Notice: Use of undefined constant JSON_PRESERVE_ZERO_FRACTION - assumed 'JSON_PRESERVE_ZERO_FRACTION' in /in/ErSYE on line 3 {"a":"sbi/1","b":2,"c":"0272561313","d":4200123,"e":5,"f":"4200123"}