3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "1"; $file = "http://tec.thediamondpages.com/projects/D&D/PlayerTracker/CharacterSheet.html"; $file_info = new finfo(FILEINFO_MIME); $mime_type = $file_info->buffer(file_get_contents($file)); echo $mime_type; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f9rAB
function name:  (null)
number of ops:  15
compiled vars:  !0 = $file, !1 = $file_info, !2 = $mime_type
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     '1'
    5     1        ASSIGN                                                   !0, 'http%3A%2F%2Ftec.thediamondpages.com%2Fprojects%2FD%26D%2FPlayerTracker%2FCharacterSheet.html'
    7     2        NEW                                              $4      'finfo'
          3        SEND_VAL_EX                                              1040
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $4
    8     6        INIT_METHOD_CALL                                         !1, 'buffer'
          7        INIT_FCALL                                               'file_get_contents'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $7      
         10        SEND_VAR_NO_REF_EX                                       $7
         11        DO_FCALL                                      0  $8      
         12        ASSIGN                                                   !2, $8
   10    13        ECHO                                                     !2
   12    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.96 ms | 1394 KiB | 15 Q