3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "id,first_name,last_name,email,country,ip_address 1,Daniel,Jenkins,djenkins0@storify.com,Sweden,234.45.13.29 2,Arthur,Pierce,apierce1@google.cn,Ecuador,83.163.37.204 3,Dorothy,Sanchez,dsanchez2@squarespace.com,Greece,52.251.217.127 4,Anthony,Greene,agreene3@nhs.uk,France,15.123.64.87 5,Catherine,Reyes,creyes4@pinterest.com,Russia,163.2.133.124"; $csv = array_map("str_getcsv", $data); $cols = array_keys($csv[0]); var_dump($csv); var_dump($cols);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, string given in /in/MQ7NU:10 Stack trace: #0 /in/MQ7NU(10): array_map('str_getcsv', 'id,first_name,l...') #1 {main} thrown in /in/MQ7NU on line 10
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
32.76 ms | 401 KiB | 8 Q