3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fgetcsv_dump($csv) { $url = 'data://text/plain,' . urlencode($csv); $handle = fopen($url, 'r'); echo '"', addcslashes($csv, "\0..\37!@\177..\377"), "\"\n"; var_dump(fgetcsv($handle)); echo "\n"; } fgetcsv_dump("foo\",bar\n"); fgetcsv_dump("\",bar"); fgetcsv_dump("\",bar\n"); fgetcsv_dump("");
Output for git.master, git.master_jit, rfc.property-hooks
"foo",bar\n" array(2) { [0]=> string(4) "foo"" [1]=> string(3) "bar" } "",bar" array(1) { [0]=> string(4) ",bar" } "",bar\n" array(1) { [0]=> string(5) ",bar " } "" bool(false)

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:
126.58 ms | 405 KiB | 5 Q