3v4l.org

run code in 300+ PHP versions simultaneously
<?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 end of file, expecting ')' in XZ4dZ on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.20
Parse error: syntax error, unexpected $end, expecting ')' in XZ4dZ on line 4
Process exited with code 255.

preferences:
171.12 ms | 1395 KiB | 39 Q