3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $truc = []; $truc["platform_id"] = "IT"; $truc["pair"] = [ 0 => array:2 [ "score" => 0.0 "version" => "1" ] 1 => array:2 [ "score" => 1.0990682605629E-5 "version" => "ranking_score_v1" ] 2 => array:2 [ "score" => 1.0990682605629E-5 "version" => "ranking_score_v2" ] 3 => array:2 [ "score" => 1.0990682605629E-5 "version" => "ranking_score_v3" ] ]; $truc["article_id"] = 3084207; $truc["product_id"] => 3222466; $tmp = ['product_id' => $item['product_id']], $truc dump($tmp);
based on pltuu
Output for 5.6.38 - 7.3.0rc3
Parse error: syntax error, unexpected ':', expecting '(' in /in/RZcsX on line 6
Process exited with code 255.