3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = 'Year,Make,Model,Description,Price 1997,Ford,E350,"ac, abs, moon",3000.00 1999,Chevy,"Venture ""Extended Edition""","",4900.00 1999,Chevy,"Venture ""Extended Edition, Very Large""","",5000.00 1996,Jeep,Grand Cherokee,"MUST SELL! air, moon roof, loaded",4799.00'; $handle = fopen("data://text/plain,$data", 'r'); while (($row = fgetcsv($handle, )) !== FALSE) { // do something with row values print_r($row); } fclose($handle);

preferences:
24.22 ms | 407 KiB | 5 Q