3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $file = tempnam(sys_get_temp_dir(), 'test;); file_put_contents($file, "lots\r\nof\r\nlines"); var_dump(nl2br(file_get_contents($file))); unlink($file);
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected ''test;);' (T_ENCAPSED_AND_WHITESPACE) in /in/rDmGK on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /in/rDmGK on line 3
Process exited with code 255.