3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r(json_decode('{"hours":{"2018-06-10 11:00":2,"2018-06-12 07:00":5,"2018-06-12 08:00":4,"2018-06-12 09:00":2,"2018-06-13 09:00":1,"2018-06-13 13:00":1,"2018-06-13 23:00":1,"2018-06-15 13:00":1,"2018-06-15 14:00":1,"2018-06-15 15:00":2,"2018-06-18 06:00":5,"2018-06-18 07:00":9,"2018-06-18 08:00":1,"2018-06-18 09:00":1,"2018-06-18 12:00":2,"2018-06-18 13:00":13},"days":{"2018-06-10 00:00":2,"2018-06-12 00:00":11,"2018-06-13 00:00":3,"2018-06-15 00:00":4,"2018-06-18 00:00":29,"2018-06-18 07:00":2},"weeks":{"2018-06-10 00:00":20,"2018-06-17 00:00":29,"2018-06-18 07:00":2}}', TRUE));
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.3.0beta1
Array ( [hours] => Array ( [2018-06-10 11:00] => 2 [2018-06-12 07:00] => 5 [2018-06-12 08:00] => 4 [2018-06-12 09:00] => 2 [2018-06-13 09:00] => 1 [2018-06-13 13:00] => 1 [2018-06-13 23:00] => 1 [2018-06-15 13:00] => 1 [2018-06-15 14:00] => 1 [2018-06-15 15:00] => 2 [2018-06-18 06:00] => 5 [2018-06-18 07:00] => 9 [2018-06-18 08:00] => 1 [2018-06-18 09:00] => 1 [2018-06-18 12:00] => 2 [2018-06-18 13:00] => 13 ) [days] => Array ( [2018-06-10 00:00] => 2 [2018-06-12 00:00] => 11 [2018-06-13 00:00] => 3 [2018-06-15 00:00] => 4 [2018-06-18 00:00] => 29 [2018-06-18 07:00] => 2 ) [weeks] => Array ( [2018-06-10 00:00] => 20 [2018-06-17 00:00] => 29 [2018-06-18 07:00] => 2 ) )