3v4l.org

run code in 300+ PHP versions simultaneously
<?php $finfo = new finfo(FILEINFO_MIME_TYPE); $mimeType = $finfo->buffer(file_get_contents('http://cdn3.tnwcdn.com/wp-content/blogs.dir/1/files/2013/02/google_chrome.png')); echo $mimeType;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jVdaP
function name:  (null)
number of ops:  13
compiled vars:  !0 = $finfo, !1 = $mimeType
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'finfo'
          1        SEND_VAL_EX                                              16
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        INIT_METHOD_CALL                                         !0, 'buffer'
          5        INIT_FCALL                                               'file_get_contents'
          6        SEND_VAL                                                 'http%3A%2F%2Fcdn3.tnwcdn.com%2Fwp-content%2Fblogs.dir%2F1%2Ffiles%2F2013%2F02%2Fgoogle_chrome.png'
          7        DO_ICALL                                         $5      
          8        SEND_VAR_NO_REF_EX                                       $5
          9        DO_FCALL                                      0  $6      
         10        ASSIGN                                                   !1, $6
    6    11        ECHO                                                     !1
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.69 ms | 1385 KiB | 15 Q