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 7.0.5 - 7.1.0
Notice: Undefined variable: final_title in /in/ntvg1 on line 5 Notice: Undefined variable: product in /in/ntvg1 on line 6 Fatal error: Uncaught Error: Call to a member function getProductUrl() on null in /in/ntvg1:6 Stack trace: #0 {main} thrown in /in/ntvg1 on line 6
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Notice: Undefined variable: final_title in /in/ntvg1 on line 5 Notice: Undefined variable: product in /in/ntvg1 on line 6 Fatal error: Uncaught Error: Call to a member function getProductUrl() on unknown in /in/ntvg1:6 Stack trace: #0 {main} thrown in /in/ntvg1 on line 6
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: final_title in /in/ntvg1 on line 4 Notice: Undefined variable: product in /in/ntvg1 on line 6 Fatal error: Uncaught exception 'BadMethodCallException' with message 'Call to a member function getProductUrl() on a non-object (null)' in /in/ntvg1:6 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.23
Notice: Undefined variable: final_title in /in/ntvg1 on line 5 Notice: Undefined variable: product in /in/ntvg1 on line 6 Fatal error: Call to a member function getProductUrl() on null in /in/ntvg1 on line 6
Process exited with code 255.
Output for 5.0.4 - 5.5.37
Notice: Undefined variable: final_title in /in/ntvg1 on line 5 Notice: Undefined variable: product in /in/ntvg1 on line 6 Fatal error: Call to a member function getProductUrl() on a non-object in /in/ntvg1 on line 6
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: final_title in /in/ntvg1 on line 5 Notice: Undefined variable: product in /in/ntvg1 on line 6 Fatal error: Call to a member function getProductUrl() on a non-object in /in/ntvg1 on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Notice: Undefined variable: final_title in /in/ntvg1 on line 5 Fatal error: Call to a member function on a non-object in /in/ntvg1 on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: final_title in /in/ntvg1 on line 5 Fatal error: Call to a member function on a non-object in /in/ntvg1 on line 6