3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fichero = new SplFileObject("$sqlfile"); $fichero->setFlags(SplFileObject::READ_CSV); foreach ($fichero as $fila) { $values[] = "('".implode("','", $fila)."')";
Output for 5.4.13
Parse error: syntax error, unexpected end of file in /in/2vYWD on line 8
Process exited with code 255.
Output for 5.4.0 - 5.4.12
Parse error: syntax error, unexpected end of file in IXgYI on line 8
Process exited with code 255.
Output for 5.3.23
Parse error: syntax error, unexpected $end in /in/2vYWD on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.22
Parse error: syntax error, unexpected $end in IXgYI on line 8
Process exited with code 255.

preferences:
173.74 ms | 1395 KiB | 45 Q