3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ 0 => "10BR1\"5560R1\\\"0050T-5050", 28 => '7|2,48', 54 => '13 800', 57 => "38\t,00" ]; $fp = fopen('php://memory', 'r+'); fputcsv($fp, [$data[0], $data[54], $data[57], $data[28] . '.jpg'], '|'); rewind($fp); echo fgets($fp); rewind($fp); print_r(fgetcsv($fp, 1024, '|')); fclose($fp);
Output for git.master, git.master_jit
"10BR1""5560R1\"0050T-5050"|"13 800"|"38 ,00"|"7|2,48.jpg" Array ( [0] => 10BR1"5560R1\"0050T-5050 [1] => 13 800 [2] => 38 ,00 [3] => 7|2,48.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:
41.99 ms | 405 KiB | 5 Q