3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $contentLines = explode("\n", 'id,parent_id,"category_key",locked,lft,rgt,root,lvl,"catalog_query","catalog_query_locale","type",visible_sitemap,visible_navigation,visible_breadcrumb,"created","updated",public,orphan_report 1,NULL,"root",1,391,391,1,0,"{\"filter_queries\":{\"section\":{\"union\":[\"men\",\"women\",\"girls\",\"boys\",\"baby boys\",\"baby girls\",\"newborn\",\"home\",\"acc\",\"gant underwear\"]}}}","nl_NL","ruleBasedCategory",0,1,0,"0000-00-00 00:00:00","2015-09-24 15:32:18",0,0 394,1,"unisex",0,1,68,1,1,"[]","nl_NL","ruleBasedCategory",0,0,0,"2015-07-13 15:53:31","2015-09-30 13:56:09",1,0 395,1,"heren",0,69,188,1,1,"{\"filter_queries\":{\"section\":\"men\"}}","nl_NL","ruleBasedCategory",1,1,1,"2015-07-13 16:12:15","2015-08-20 19:30:31",1,0 396,1,"dames",0,189,242,1,1,"{\"filter_queries\":{\"section\":\"women\"}}","nl_NL","ruleBasedCategory",1,1,1,"2015-07-14 12:28:43","2015-09-03 09:01:07",1,0 397,1,"kids",0,243,268,1,1,"{\"filter_queries\":{\"section\":{\"union\":[\"baby boys\",\"baby girls\",\"boys\",\"girls\"]}}}","nl_NL","ruleBasedCategory",1,1,1,"2015-07-14 12:29:56","2015-08-20 20:11:04",1,0 398,1,"home",0,269,296,1,1,"{\"filter_queries\":{\"section\":\"home\"}}","nl_NL","ruleBasedCategory",1,1,1,"2015-07-14 12:30:52","2015-08-30 22:22:18",1,0 399,1,"sale",0,297,378,1,1,"[]","nl_NL","ruleBasedCategory",0,0,0,"2015-07-14 12:31:36","2015-09-03 08:14:42",1,0 400,395,"herenkleding",0,70,71,1,2,"{\"filter_queries\":{\"section\":\"men\",\"on_sale_nl_customer\":\"false\"},\"mappings\":{\"on_sale_nl_customer\":\"on_sale\"}}","nl_NL","ruleBasedCategory",0,0,0,"2015-07-14 12:33:30","2015-09-03 07:58:09",1,0 401,395,"heren-blazers",0,104,113,1,2,"{\"filter_queries\":{\"section\":\"men\",\"category_key\":\"Blazers\",\"on_sale_nl_customer\":\"false\"},\"mappings\":{\"category_key\":\"category\",\"on_sale_nl_customer\":\"on_sale\"}}","nl_NL","ruleBasedCategory",1,1,1,"2015-07-14 12:34:56","2015-09-03 07:57:07",1,0'); foreach($contentLines as $line) { print_r(parse_csv($line)); }
based on 6iEj7
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function parse_csv() in /in/LSRDd:15 Stack trace: #0 {main} thrown in /in/LSRDd on line 15
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined function parse_csv() in /in/LSRDd on line 15
Process exited with code 255.