3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = __FILE__; $fp = finfo_open(); $mime = finfo_file($fp, $file); finfo_close($fp); var_dump($mime); unset($fp); $fp = finfo_open(); $mime = finfo_file($fp, $file); finfo_close($fp); var_dump($mime);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EhmkM
function name:  (null)
number of ops:  31
compiled vars:  !0 = $file, !1 = $fp, !2 = $mime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2Fin%2FEhmkM'
    4     1        INIT_FCALL                                               'finfo_open'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !1, $4
    5     4        INIT_FCALL                                               'finfo_file'
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
    6     9        INIT_FCALL                                               'finfo_close'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
    7    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
    9    15        UNSET_CV                                                 !1
   11    16        INIT_FCALL                                               'finfo_open'
         17        DO_ICALL                                         $10     
         18        ASSIGN                                                   !1, $10
   12    19        INIT_FCALL                                               'finfo_file'
         20        SEND_VAR                                                 !1
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $12     
         23        ASSIGN                                                   !2, $12
   13    24        INIT_FCALL                                               'finfo_close'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                                 
   14    27        INIT_FCALL                                               'var_dump'
         28        SEND_VAR                                                 !2
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.82 ms | 1395 KiB | 21 Q