3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = file_get_contents('http://stackoverflow.com/questions/17520093/read-large-data-from-csv-file-in-php'); echo mb_detect_encoding($str, 'UTF-8', true);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uAi4h
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'http%3A%2F%2Fstackoverflow.com%2Fquestions%2F17520093%2Fread-large-data-from-csv-file-in-php'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'mb_detect_encoding'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 'UTF-8'
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $3      
          9        ECHO                                                     $3
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.49 ms | 1394 KiB | 17 Q