3v4l.org

run code in 300+ PHP versions simultaneously
<?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)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 14
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/LSRDd
function name:  (null)
number of ops:  16
compiled vars:  !0 = $contentLines, !1 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '%0A'
          2        SEND_VAL                                                 'id%2Cparent_id%2C%22category_key%22%2Clocked%2Clft%2Crgt%2Croot%2Clvl%2C%22catalog_query%22%2C%22catalog_query_locale%22%2C%22type%22%2Cvisible_sitemap%2Cvisible_navigation%2Cvisible_breadcrumb%2C%22created%22%2C%22updated%22%2Cpublic%2Corphan_report%0A1%2CNULL%2C%22root%22%2C1%2C391%2C391%2C1%2C0%2C%22%7B%5C%22filter_queries%5C%22%3A%7B%5C%22section%5C%22%3A%7B%5C%22union%5C%22%3A%5B%5C%22men%5C%22%2C%5C%22women%5C%22%2C%5C%22girls%5C%22%2C%5C%22boys%5C%22%2C%5C%22baby+boys%5C%22%2C%5C%22baby+girls%5C%22%2C%5C%22newborn%5C%22%2C%5C%22home%5C%22%2C%5C%22acc%5C%22%2C%5C%22gant+underwear%5C%22%5D%7D%7D%7D%22%2C%22nl_NL%22%2C%22ruleBasedCategory%22%2C0%2C1%2C0%2C%220000-00-00+00%3A00%3A00%22%2C%222015-09-24+15%3A32%3A18%22%2C0%2C0%0A394%2C1%2C%22unisex%22%2C0%2C1%2C68%2C1%2C1%2C%22%5B%5D%22%2C%22nl_NL%22%2C%22ruleBasedCategory%22%2C0%2C0%2C0%2C%222015-07-13+15%3A53%3A31%22%2C%222015-09-30+13%3A56%3A09%22%2C1%2C0%0A395%2C1%2C%22heren%22%2C0%2C69%2C188%2C1%2C1%2C%22%7B%5C%22filter_queries%5C%22%3A%7B%5C%22section%5C%22%3A%5C%22men%5C%22%7D%7D%22%2C%22nl_NL%22%2C%22ruleBasedCategory%22%2C1%2C1%2C1%2C%222015-07-13+16%3A12%3A15%22%2C%222015-08-20+19%3A30%3A31%22%2C1%2C0%0A396%2C1%2C%22dames%22%2C0%2C189%2C242%2C1%2C1%2C%22%7B%5C%22filter_queries%5C%22%3A%7B%5C%22section%5C%22%3A%5C%22women%5C%22%7D%7D%22%2C%22nl_NL%22%2C%22ruleBasedCategory%22%2C1%2C1%2C1%2C%222015-07-14+12%3A28%3A43%22%2C%222015-09-03+09%3A01%3A07%22%2C1%2C0%0A397%2C1%2C%22kids%22%2C0%2C243%2C268%2C1%2C1%2C%22%7B%5C%22filter_queries%5C%22%3A%7B%5C%22section%5C%22%3A%7B%5C%22union%5C%22%3A%5B%5C%22baby+boys%5C%22%2C%5C%22baby+girls%5C%22%2C%5C%22boys%5C%22%2C%5C%22girls%5C%22%5D%7D%7D%7D%22%2C%22nl_NL%22%2C%22ruleBasedCategory%22%2C1%2C1%2C1%2C%222015-07-14+12%3A29%3A56%22%2C%222015-08-20+20%3A11%3A04%22%2C1%2C0%0A398%2C1%2C%22home%22%2C0%2C269%2C296%2C1%2C1%2C%22%7B%5C%22filter_queries%5C%22%3A%7B%5C%22section%5C%22%3A%5C%22home%5C%22%7D%7D%22%2C%22nl_NL%22%2C%22ruleBasedCategory%22%2C1%2C1%2C1%2C%222015-07-14+12%3A30%3A52%22%2C%222015-08-30+22%3A22%3A18%22%2C1%2C0%0A399%2C1%2C%22sale%22%2C0%2C297%2C378%2C1%2C1%2C%22%5B%5D%22%2C%22nl_NL%22%2C%22ruleBasedCategory%22%2C0%2C0%2C0%2C%222015-07-14+12%3A31%3A36%22%2C%222015-09-03+08%3A14%3A42%22%2C1%2C0%0A400%2C395%2C%22herenkleding%22%2C0%2C70%2C71%2C1%2C2%2C%22%7B%5C%22filter_queries%5C%22%3A%7B%5C%22section%5C%22%3A%5C%22men%5C%22%2C%5C%22on_sale_nl_customer%5C%22%3A%5C%22false%5C%22%7D%2C%5C%22mappings%5C%22%3A%7B%5C%22on_sale_nl_customer%5C%22%3A%5C%22on_sale%5C%22%7D%7D%22%2C%22nl_NL%22%2C%22ruleBasedCategory%22%2C0%2C0%2C0%2C%222015-07-14+12%3A33%3A30%22%2C%222015-09-03+07%3A58%3A09%22%2C1%2C0%0A401%2C395%2C%22heren-blazers%22%2C0%2C104%2C113%2C1%2C2%2C%22%7B%5C%22filter_queries%5C%22%3A%7B%5C%22section%5C%22%3A%5C%22men%5C%22%2C%5C%22category_key%5C%22%3A%5C%22Blazers%5C%22%2C%5C%22on_sale_nl_customer%5C%22%3A%5C%22false%5C%22%7D%2C%5C%22mappings%5C%22%3A%7B%5C%22category_key%5C%22%3A%5C%22category%5C%22%2C%5C%22on_sale_nl_customer%5C%22%3A%5C%22on_sale%5C%22%7D%7D%22%2C%22nl_NL%22%2C%22ruleBasedCategory%22%2C1%2C1%2C1%2C%222015-07-14+12%3A34%3A56%22%2C%222015-09-03+07%3A57%3A07%22%2C1%2C0'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
   14     5      > FE_RESET_R                                       $4      !0, ->14
          6    > > FE_FETCH_R                                               $4, !1, ->14
   15     7    >   INIT_FCALL                                               'print_r'
          8        INIT_FCALL_BY_NAME                                       'parse_csv'
          9        SEND_VAR_EX                                              !1
         10        DO_FCALL                                      0  $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                                 
   14    13      > JMP                                                      ->6
         14    >   FE_FREE                                                  $4
   16    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.64 ms | 1400 KiB | 17 Q