3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //write to array $prod_array => array( 'title' => $final_title, 'link' => $product->getProductUrl(), 'description' => $long_desc, 'image' => $final_image, 'price' => $finalPriceInclTax, //price //'price' => number_format($product->getPrice(), 2), //price 'id' => $product->getSku(), 'ean' => $product->getEan(), 'brand' => $product->getAttributeText('manufacturer'), 'product_type' => $parent_cat . " > " . $category->getName(), 'gm_cat' => set_categories($category->getName(),"test1.csv"), 'pr_cat' => set_categories($category->getName(),"test2.csv"), 'sdc_cat' => set_categories($category->getName(),"test3.csv") ); $counter++;
Output for 5.4.0 - 5.4.10
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /in/YX61c on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.20
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /in/YX61c on line 4
Process exited with code 255.