3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $output = fopen('php://output', 'w'); fputcsv($output, 'a:3:{s:4:""type"";i:3;s:8:""platform"";s:10:""flirchi.ru"";s:13:""channel_login"";s:10:""flirchi.ru"";}'); var_dump($output);
Output for 5.2.3 - 5.6.21, 7.0.0 - 7.1.0
Warning: fputcsv() expects parameter 2 to be array, string given in /in/pvEbH on line 4 resource(5) of type (stream)
Output for hhvm-3.10.0 - 3.12.0
Warning: fputcsv() expects parameter 2 to be array, string given in /in/pvEbH on line 4 resource(4) of type (stream)
Output for 5.1.0 - 5.2.2
Warning: fputcsv() expects parameter 2 to be array, string given in /in/pvEbH on line 4 resource(2) of type (stream)
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function fputcsv() in /in/pvEbH on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: fputcsv() in /in/pvEbH on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: fputcsv() in /in/pvEbH on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: fputcsv() in /in/pvEbH on line 4