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 git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $final_title in /in/JJ8BK on line 5 Warning: Undefined variable $product in /in/JJ8BK on line 6 Fatal error: Uncaught Error: Call to a member function getProductUrl() on null in /in/JJ8BK:6 Stack trace: #0 {main} thrown in /in/JJ8BK on line 6
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
49.47 ms | 405 KiB | 9 Q