3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php fopen('/var/log/syslog', $fp);
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: fp in /in/gUQJX on line 3 Warning: fopen(/var/log/syslog): failed to open stream: Inappropriate ioctl for device in /in/gUQJX on line 3
Output for hhvm-3.12.0 - 3.13.2
Notice: Undefined variable: fp in /in/gUQJX on line 3 Warning: fopen() expects parameter 2 to be string, null given in /in/gUQJX on line 3
Output for hhvm-3.10.0
Notice: Undefined variable: fp in /in/gUQJX on line 3 Warning: Invalid argument in /in/gUQJX on line 3
Output for 4.3.2, 5.0.0 - 5.0.3
Notice: Undefined variable: fp in /in/gUQJX on line 3 Warning: fopen(/var/log/syslog): failed to open stream: Inappropriate ioctl for device in /in/gUQJX on line 3
Output for 4.3.3 - 4.4.9
Notice: Undefined variable: fp in /in/gUQJX on line 3 Warning: fopen(/var/log/syslog): failed to open stream: Success in /in/gUQJX on line 3
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: fp in /in/gUQJX on line 3 Warning: fopen(/var/log/syslog) [http://www.php.net/function.fopen]: failed to create stream: Invalid argument in /in/gUQJX on line 3