3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $line = '"1212","$ 507.74","$ 0.00","$ 2,954.16","Kč 9,647.00","","TDR 697","","Kč 23,737.00","","","","","Kč 457.00","","","","","Kč 29,959.00","","","","","$ 104.00","","3232"'; $line = explode('","', $line); $line[0] = substr(trim($line[0], "\t\n\r"), 1); $line[count($line)-1] = substr(rtrim($line[count($line)-1], "\t\n\r"), 0, count($line)-1); $lastItem = $line[count($line)-1]; echo substr($lastItem, "\t\n\r"), 0, count($lastItem)).PHP_EOL; echo substr($lastItem, "\t\n\r"), 0, count($lastItem)-1).PHP_EOL;
Output for 5.3.0 - 5.4.30
Parse error: syntax error, unexpected ')', expecting ',' or ';' in /in/dh8TZ on line 9
Process exited with code 255.