3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = array( array("claim_id" => 1, "forename" => "foo", "surname" => "bar", "date" => "2013-12-01"), array("claim_id" => 2, "forename" => "foo2", "surname" => "bar2", "date" => "2013-12-02"), array("claim_id" => 3, "forename" => "foo3", "surname" => "bar3", "date" => "2013-12-03") ); $fp = fopen('php://output', 'w'); foreach($result AS $row) { if(!isset($header)) { $header = array_keys($row); fputcsv($fp, $header); } fputcsv($fp, $row); } fclose($fp);
Output for git.master, git.master_jit, rfc.property-hooks
claim_id,forename,surname,date 1,foo,bar,2013-12-01 2,foo2,bar2,2013-12-02 3,foo3,bar3,2013-12-03

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:
52.82 ms | 401 KiB | 8 Q