3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $json = '{"name":"stock.updated","class":"Arom\\Stock\\ApiBundle\\V0\\Model\\Collection\\StockCollection","payload":"{\"stocks\":[{\"reference\":\"90007566\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007567\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007568\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007569\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007570\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007571\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007572\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007573\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007574\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007575\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007616\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007617\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007618\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007619\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007620\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007621\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007622\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"}]}"}'; var_dump(json_decode($json, TRUE)); echo json_last_error_msg();
Output for 7.1.18
NULL Syntax error