3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $line = '"Item no.";"Product name English";"Description English"'. "\n"; $stream = fopen('php://memory', 'r+'); fwrite($stream, $line); rewind($stream); $array = fgetcsv($stream, 0, ';'); var_dump($array);
Output for 5.6.0 - 5.6.30, hhvm-3.12.14 - 3.17.3, 7.0.0 - 7.3.0rc3
array(3) { [0]=> string(8) "Item no." [1]=> string(20) "Product name English" [2]=> string(19) "Description English" }