3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array['a'] = "as"; $array['b'] = 1; $array['c'] = 1.13; $array['d'] = 10.08; echo json_encode($array);
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.5 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.27, 8.0.0 - 8.0.15, 8.1.0 - 8.1.2
{"a":"as","b":1,"c":1.13,"d":10.08}

preferences:
49.58 ms | 460 KiB | 5 Q