3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if(!defined('STDOUT')) { define('STDOUT', fopen('php://ouput', 'a+')); } $headers = array( 'Name', 'DOB', 'Height', 'Hair Colour', 'Weight', 'Eye Colour' ); fputcsv(STDOUT, $headers, "\t");
Output for 5.2.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Name DOB Height "Hair Colour" Weight "Eye Colour"
Output for 5.2.1 - 5.2.2
Warning: fopen(): Invalid php:// URL specified in /in/leSpu on line 4 Warning: fopen(php://ouput): failed to open stream: Inappropriate ioctl for device in /in/leSpu on line 4 Warning: fputcsv() expects parameter 1 to be resource, boolean given in /in/leSpu on line 15
Output for 5.1.0 - 5.2.0
Warning: fopen(php://ouput): failed to open stream: Inappropriate ioctl for device in /in/leSpu on line 4 Warning: fputcsv() expects parameter 1 to be resource, boolean given in /in/leSpu on line 15
Output for 5.0.0 - 5.0.5
Warning: fopen(php://ouput): failed to open stream: Inappropriate ioctl for device in /in/leSpu on line 4 Fatal error: Call to undefined function fputcsv() in /in/leSpu on line 15
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Warning: fopen(php://ouput): failed to open stream: Success in /in/leSpu on line 4 Fatal error: Call to undefined function: fputcsv() in /in/leSpu on line 15
Process exited with code 255.
Output for 4.3.3 - 4.4.4
Warning: fopen(php://ouput): failed to open stream: Success in /in/leSpu on line 4 Fatal error: Call to undefined function: fputcsv() in /in/leSpu on line 15
Process exited with code 255.
Output for 4.3.2
Warning: fopen(php://ouput): failed to open stream: Inappropriate ioctl for device in /in/leSpu on line 4 Fatal error: Call to undefined function: fputcsv() in /in/leSpu on line 15
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: fopen(php://ouput) [http://www.php.net/function.fopen]: failed to create stream: Inappropriate ioctl for device in /in/leSpu on line 4 Fatal error: Call to undefined function: fputcsv() in /in/leSpu on line 15