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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MQ7NU
function name:  (null)
number of ops:  18
compiled vars:  !0 = $data, !1 = $csv, !2 = $cols
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'id%2Cfirst_name%2Clast_name%2Cemail%2Ccountry%2Cip_address%0A1%2CDaniel%2CJenkins%2Cdjenkins0%40storify.com%2CSweden%2C234.45.13.29%0A2%2CArthur%2CPierce%2Capierce1%40google.cn%2CEcuador%2C83.163.37.204%0A3%2CDorothy%2CSanchez%2Cdsanchez2%40squarespace.com%2CGreece%2C52.251.217.127%0A4%2CAnthony%2CGreene%2Cagreene3%40nhs.uk%2CFrance%2C15.123.64.87%0A5%2CCatherine%2CReyes%2Ccreyes4%40pinterest.com%2CRussia%2C163.2.133.124'
   10     1        INIT_FCALL                                               'array_map'
          2        SEND_VAL                                                 'str_getcsv'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   11     6        INIT_FCALL                                               'array_keys'
          7        FETCH_DIM_R                                      ~6      !1, 0
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !2, $7
   13    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
   14    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.83 ms | 1395 KiB | 19 Q