3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('auto_detect_line_endings', 1); $data = <<<EOT "program_name","merchant_id","code","description","url","start_date","end_date","region","Date_Added","exclusive" "Store1","01","RAWFOOD20","£20 off £90 spend on Veg","http://www.site.com/ ","2013-07-04 00:00:00","2013-10-31 23:59:59","GB","2013-07-04 01:00:00","No" "Store1","01","RAWFOOD0","£10 off £60 spend on Milk","http://www.site.com/ ","2013-07-04 00:00:00","2013-10-31 23:59:59","GB","2013-07-04 01:00:00","No"' EOT; $parse = str_getcsv($data); var_dump($parse);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dJJuX
function name:  (null)
number of ops:  13
compiled vars:  !0 = $data, !1 = $parse
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'auto_detect_line_endings'
          2        SEND_VAL                                                 1
          3        DO_ICALL                                                 
    3     4        ASSIGN                                                   !0, '%22program_name%22%2C%22merchant_id%22%2C%22code%22%2C%22description%22%2C%22url%22%2C%22start_date%22%2C%22end_date%22%2C%22region%22%2C%22Date_Added%22%2C%22exclusive%22%0A%22Store1%22%2C%2201%22%2C%22RAWFOOD20%22%2C%22%C2%A320+off+%C2%A390+spend+on+Veg%22%2C%22http%3A%2F%2Fwww.site.com%2F+%22%2C%222013-07-04+00%3A00%3A00%22%2C%222013-10-31+23%3A59%3A59%22%2C%22GB%22%2C%222013-07-04+01%3A00%3A00%22%2C%22No%22%0A%22Store1%22%2C%2201%22%2C%22RAWFOOD0%22%2C%22%C2%A310+off+%C2%A360+spend+on+Milk%22%2C%22http%3A%2F%2Fwww.site.com%2F+%22%2C%222013-07-04+00%3A00%3A00%22%2C%222013-10-31+23%3A59%3A59%22%2C%22GB%22%2C%222013-07-04+01%3A00%3A00%22%2C%22No%22%27'
    9     5        INIT_FCALL                                               'str_getcsv'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
   11     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.55 ms | 1395 KiB | 19 Q