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\":\"90007576\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007577\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007578\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007579\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007580\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007581\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007582\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007583\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007584\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007585\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007586\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007587\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007588\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007589\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007590\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007591\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007592\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007593\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007594\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007595\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007596\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007597\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007598\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007599\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007600\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007601\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007602\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007603\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007604\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007605\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007606\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007607\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007608\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007609\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007610\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007611\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007612\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007613\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007614\",\"site\":\"11224\",\"type\":\"physical\",\"quantity\":0,\"date\":\"2018-10-24T11:20:30+0000\",\"updated_at\":\"2018-10-24T11:20:30+0000\"},{\"reference\":\"90007615\",\"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\"}]}"}'; echo(json_decode($json, TRUE)); echo json_last_error_msg();
Output for 5.6.30
Syntax error