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", str_getcsv($data)); $cols = array_shift($csv); var_dump($csv); var_dump($cols);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YlIOd
function name:  (null)
number of ops:  20
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        INIT_FCALL                                               'str_getcsv'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
   11     9        INIT_FCALL                                               'array_shift'
         10        SEND_REF                                                 !1
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
   13    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
   14    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.78 ms | 1395 KiB | 21 Q