3v4l.org

run code in 500+ PHP versions simultaneously
<?php function toate_produsele_active() { return array( array( "product_id" => 1, "product_name" => "some name", "category_url" => "some/url", "product_short_desc" => "some desc", "product_price" => 500, "product_photo" => array("photo.jpg"), ), ); } $f = fopen('php://output', 'wb'); if($f) { foreach(toate_produsele_active() as $produs) { $coloane = array( $produs['product_id'], $produs['product_name'], $produs['category_url'], $produs['product_short_desc'], $produs['product_price'], implode('[,]', str_replace('[,]', '[%2C]', $produs['product_photo'])), ); fputcsv($f, $coloane, ';', '"'); } fclose($f); }
Output for rfc.property-hooks, git.master, git.master_jit
1;"some name";some/url;"some desc";500;photo.jpg

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:
95.04 ms | 2648 KiB | 4 Q