3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $line = '"220812","999 Kč za 25CD \""Antologie české populární hudby 1965-89\"" v hodnotě 1999 Kč","partner-self@slevomat.cz","partner-self@slevomat.cz","30073","Praha","Zboží","Nakupování / zboží","2011-02-14 00:00:00","2011-02-20 23:59:59","0","0.00","0.00","0.00","10","2011-02-15 00:00:00","2011-05-15 23:59:59","Yes","0","1","14","100","100","100","Praha","1","120","0","0.00","7232","0","0","1","1","1","0","0","0","1","0","0","0","0","0","0","--empty--","","katerina.horvathova@slevomat.cz","katerina.horvathova@slevomat.cz","","","Všechny slevy","0","0","0","0","--empty--","Local","katerina.horvathova@slevomat.cz","1","No","3rd Party Goods"'; $line = explode('","', $line); $line[0] = substr(trim($line[0], "\t\n\r"), 1); $lastItemIndex = count($line) - 1; $lastItem = rtrim($line[$lastItemIndex], "\t\n\r"); $line[$lastItemIndex] = substr($lastItem, 0, strlen($lastItem)-1); foreach ($line as &$l) { $l = str_replace('\"', '""', $column); } print_r($line);
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Array ( [0] => [1] => [2] => [3] => [4] => [5] => [6] => [7] => [8] => [9] => [10] => [11] => [12] => [13] => [14] => [15] => [16] => [17] => [18] => [19] => [20] => [21] => [22] => [23] => [24] => [25] => [26] => [27] => [28] => [29] => [30] => [31] => [32] => [33] => [34] => [35] => [36] => [37] => [38] => [39] => [40] => [41] => [42] => [43] => [44] => [45] => [46] => [47] => [48] => [49] => [50] => [51] => [52] => [53] => [54] => [55] => [56] => [57] => [58] => [59] => [60] => [61] => )
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Notice: Undefined variable: column in /in/HAAp6 on line 10 Array ( [0] => [1] => [2] => [3] => [4] => [5] => [6] => [7] => [8] => [9] => [10] => [11] => [12] => [13] => [14] => [15] => [16] => [17] => [18] => [19] => [20] => [21] => [22] => [23] => [24] => [25] => [26] => [27] => [28] => [29] => [30] => [31] => [32] => [33] => [34] => [35] => [36] => [37] => [38] => [39] => [40] => [41] => [42] => [43] => [44] => [45] => [46] => [47] => [48] => [49] => [50] => [51] => [52] => [53] => [54] => [55] => [56] => [57] => [58] => [59] => [60] => [61] => )
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /in/HAAp6 on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /in/HAAp6 on line 9
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_VARIABLE' or `'$'' in /in/HAAp6 on line 9
Process exited with code 255.