3v4l.org

run code in 300+ PHP versions simultaneously
<?php file_put_contents('data.csv', '1,2,3,4,5'); $handle = fopen('data.csv', 'c+'); $data = fgetcsv($handle, 2); var_dump($data[1]) ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V6eRM
function name:  (null)
number of ops:  19
compiled vars:  !0 = $handle, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'file_put_contents'
          1        SEND_VAL                                                 'data.csv'
          2        SEND_VAL                                                 '1%2C2%2C3%2C4%2C5'
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'fopen'
          5        SEND_VAL                                                 'data.csv'
          6        SEND_VAL                                                 'c%2B'
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !0, $3
    5     9        INIT_FCALL                                               'fgetcsv'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 2
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !1, $5
    6    14        INIT_FCALL                                               'var_dump'
         15        FETCH_DIM_R                                      ~7      !1, 1
         16        SEND_VAL                                                 ~7
         17        DO_ICALL                                                 
    8    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.16 ms | 1394 KiB | 21 Q