3v4l.org

run code in 300+ PHP versions simultaneously
Erstens:<br /> <?php $csvOut = array( array('eins', 'bla', 'blubb'), array('zwei', 'bla', 'blubb'), ); $f = fopen('php://output', 'w+'); if ($f) { for ($cnt = 0; $cnt < count($csvOut); $cnt++) { fputcsv($f, $csvOut[$cnt], ';'); } fclose($f); } else { $error[] = "Report-Datei ".$csvPath." konnte nicht geschrieben werden."; } ?> Zweitens:<br /> <?php $csvOut = array( array('eins', 'bla', 'blubb'), array('zwei', 'bla', 'blubb'), ); $f = fopen('php://output', 'w+'); if ($f) { foreach($csvOut as $line) { fputcsv($f, $line, ';'); } fclose($f); } else { $error[] = "Report-Datei ".$csvPath." konnte nicht geschrieben werden."; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Erstens:<br /> eins;bla;blubb zwei;bla;blubb Zweitens:<br /> eins;bla;blubb zwei;bla;blubb

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