3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $f = fopen('d', 'w'); fputcsv($f, array('4'), ',','');
Output for 5.2.3 - 5.6.28, 7.0.0 - 7.1.0
Warning: fopen(d): failed to open stream: Permission denied in /in/oJLLt on line 2 Warning: fputcsv() expects parameter 1 to be resource, boolean given in /in/oJLLt on line 3
Output for hhvm-3.10.0 - 3.12.0
Warning: Permission denied in /in/oJLLt on line 2 Warning: fputcsv() expects parameter 1 to be resource, boolean given in /in/oJLLt on line 3
Output for 5.1.0 - 5.2.2
Warning: fopen(d): failed to open stream: Read-only file system in /in/oJLLt on line 2 Warning: fputcsv() expects parameter 1 to be resource, boolean given in /in/oJLLt on line 3
Output for 5.0.0 - 5.0.5
Warning: fopen(d): failed to open stream: Read-only file system in /in/oJLLt on line 2 Fatal error: Call to undefined function fputcsv() in /in/oJLLt on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Warning: fopen(d): failed to open stream: Read-only file system in /in/oJLLt on line 2 Fatal error: Call to undefined function: fputcsv() in /in/oJLLt on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Warning: fopen(d): failed to open stream: Read-only file system in /in/oJLLt on line 2 Fatal error: Call to undefined function: fputcsv() in /in/oJLLt on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: fopen(d) [http://www.php.net/function.fopen]: failed to create stream: Read-only file system in /in/oJLLt on line 2 Fatal error: Call to undefined function: fputcsv() in /in/oJLLt on line 3