3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = <<<EOL 01/04/2017,1649359,36350,"Dune London - EU Affiliate Programme",26/06/2017,01/06/2017,"136,86","0,00","0,00","0,00","1.790,00","Easy Fundraising: Silver Package (£895) RAN Override = £268.50 IO: IO3943 Easy Fundraising: Silver Package (£895) RAN Override = £268.50 IO: IO3921","0,00","385,37","2.312,23",GBP,Paid EOL; $f = fopen('php://temp', 'r+'); fwrite($f, $string); rewind($f); while (($data = fgetcsv($f, 0, "\n")) !== FALSE) { var_dump($data); }
based on eTTWa
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.1
array(1) { [0]=> string(170) "01/04/2017,1649359,36350,"Dune London - EU Affiliate Programme",26/06/2017,01/06/2017,"136,86","0,00","0,00","0,00","1.790,00","Easy Fundraising: Silver Package (£895)" } array(1) { [0]=> string(25) "RAN Override = £268.50" } array(1) { [0]=> string(10) "IO: IO3943" } array(1) { [0]=> string(42) "Easy Fundraising: Silver Package (£895)" } array(1) { [0]=> string(25) "RAN Override = £268.50" } array(1) { [0]=> string(47) "IO: IO3921","0,00","385,37","2.312,23",GBP,Paid" }