3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ "test1", "test2", "test3", "test4", "test5", ]; $handle = fopen('php://memory', 'w+'); // Accepting the default values doesnt work fputcsv($handle, $data); // Providing all default parameter values work fputcsv($handle, $data, ",", "\"", "\\", "\n"); fclose($handle);
Output for git.master_jit, git.master
Deprecated: fputcsv(): the $escape parameter must be provided as its default value will change in /in/aRvTD on line 14
Output for rfc.property-hooks

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:
88.01 ms | 406 KiB | 5 Q