3v4l.org

run code in 300+ PHP versions simultaneously
<?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);
Output for 5.6.38, 7.1.0 - 7.1.23, 7.2.0 - 7.2.11
Parse error: syntax error, unexpected ':', expecting '(' in /in/RZcsX on line 6
Process exited with code 255.

preferences:
171.6 ms | 1395 KiB | 44 Q