3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php file_put_content('data.csv', '1,2,3,4,5'); $handle = fopen('data.csv', 'c+'); $data = fgetcsv($handle, 2); var_dump($data[1]) ?>
based on K4DoH
Output for 7.0.28 - 7.3.0rc3
Fatal error: Uncaught Error: Call to undefined function file_put_content() in /in/KpaWk:3 Stack trace: #0 {main} thrown in /in/KpaWk on line 3
Process exited with code 255.
Output for 5.6.38
Fatal error: Call to undefined function file_put_content() in /in/KpaWk on line 3
Process exited with code 255.