3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $finfo = new finfo(FILEINFO_MIME_TYPE); file_put_contents('/tmp/waa', "<?php\nclass A{}"); var_dump($finfo->file(__FILE__)); var_dump($finfo->file('/tmp/waa));
Output for 5.4.0 - 5.4.31
Parse error: syntax error, unexpected ''/tmp/waa));' (T_ENCAPSED_AND_WHITESPACE), expecting ')' in /in/teJYd on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ')' in /in/teJYd on line 6
Process exited with code 255.