3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "Hello, World!"; $filename = "http://pureayre.com/images"; chmod($filename, 0777); if (is_writable($filename)) { echo 'The file is writable'; } else { echo 'The file is not writable'; }
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Hello, World! Warning: chmod(): Can not call chmod() for a non-standard stream in /in/k888H on line 4 The file is not writable
Output for 4.3.2 - 5.3.29, hhvm-3.12.0
Hello, World! Warning: chmod(): No such file or directory in /in/k888H on line 4 The file is not writable
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 4.3.1
Hello, World! Warning: chmod() [http://www.php.net/function.chmod]: No such file or directory in /in/k888H on line 4 The file is not writable