3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $content = <<<'EOD' Name1 Name2 Name3 EOD; $filename = tempnam('/tmp', 'foo.txt'); $handle = fopen($filename, 'w'); fwrite($handle, $content); $arrayX = file( $filename FILE_IGNORE_NEW_LINES ); var_dump($arrayX);
Output for 7.0.0 - 7.0.1
Parse error: syntax error, unexpected 'FILE_IGNORE_NEW_LINES' (T_STRING), expecting ',' or ')' in /in/66vaf on line 15
Process exited with code 255.
Output for 5.4.11 - 5.6.16
Parse error: syntax error, unexpected 'FILE_IGNORE_NEW_LINES' (T_STRING) in /in/66vaf on line 15
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_STRING in /in/66vaf on line 15
Process exited with code 255.