3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $truc = '{"platform_id": "GB", "pair": [{"score": 1.007509757521815, "version": "1"}, {"score": 4.119796082505412e-06, "version": "ranking_score_v1"}, {"score": 4.119796082505412e-06, "version": "ranking_score_v2"}, {"score": 4.119796082505412e-06, "version": "ranking_score_v3"}], "article_id": 8146582, "product_id": 8443988}'; $tmp = ['product_id' => $item['product_id']], $truc dump($tmp);
Output for 5.6.38 - 7.3.0rc3
Parse error: syntax error, unexpected ',' in /in/gQKvQ on line 5
Process exited with code 255.