3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php fopen('/var/log/syslog', $fp);
Output for 7.1.20, 7.2.8
Notice: Undefined variable: fp in /in/gUQJX on line 3 Warning: fopen(): open_basedir restriction in effect. File(/var/log/syslog) is not within the allowed path(s): (/tmp:/in) in /in/gUQJX on line 3 Warning: fopen(/var/log/syslog): failed to open stream: Operation not permitted in /in/gUQJX on line 3
Output for 5.0.4 - 7.1.10, 7.2.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 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