3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $line = '"2012-08-01 00:00:00","41121","26295532","pneuman.sklik@seznam.cz","clie13546","15789276","""Pneu servis Internacional, spol. s r. o.""","None","None","False","corporate","deposit","","wbox_deductible","channel_transfer","15000.00","newbusinessreport","13546","15789276","\\Pneu servis Internacional, spol. s r. o.\"""""","Český Krumlov","Jihočeský kraj","Hanzal Petr","Sauto","Obchod","Sauto","Hanzal Petr","Sauto","Obchod","Sauto","Hanzal Petr","Sauto","Obchod","Sauto","Štětková Naděžda","JV Čechy 4","Obchodní síť","JVC"'; $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('\"', '""', $l); $l = stripcslashes($l); } print_r($line);
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => 2012-08-01 00:00:00 [1] => 41121 [2] => 26295532 [3] => pneuman.sklik@seznam.cz [4] => clie13546 [5] => 15789276 [6] => ""Pneu servis Internacional, spol. s r. o."" [7] => None [8] => None [9] => False [10] => corporate [11] => deposit [12] => [13] => wbox_deductible [14] => channel_transfer [15] => 15000.00 [16] => newbusinessreport [17] => 13546 [18] => 15789276 [19] => Pneu servis Internacional, spol. s r. o.""""" [20] => Český Krumlov [21] => Jihočeský kraj [22] => Hanzal Petr [23] => Sauto [24] => Obchod [25] => Sauto [26] => Hanzal Petr [27] => Sauto [28] => Obchod [29] => Sauto [30] => Hanzal Petr [31] => Sauto [32] => Obchod [33] => Sauto [34] => Štětková Naděžda [35] => JV Čechy 4 [36] => Obchodní síť [37] => JVC )
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /in/2DA1W 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/2DA1W 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/2DA1W on line 9
Process exited with code 255.