3v4l.org

run code in 300+ PHP versions simultaneously
<?php touch('/tmp/test.xlsx'); var_dump(mime_content_type('/tmp/test.xlsx')); touch('/tmp/test-crlf.xlsx'); file_put_contents('/tmp/test-crlf.xlsx', "\r\n"); var_dump(mime_content_type('/tmp/test-crlf.xlsx'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8OBkG
function name:  (null)
number of ops:  23
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'touch'
          1        SEND_VAL                                                 '%2Ftmp%2Ftest.xlsx'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'mime_content_type'
          5        SEND_VAL                                                 '%2Ftmp%2Ftest.xlsx'
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'touch'
         10        SEND_VAL                                                 '%2Ftmp%2Ftest-crlf.xlsx'
         11        DO_ICALL                                                 
    7    12        INIT_FCALL                                               'file_put_contents'
         13        SEND_VAL                                                 '%2Ftmp%2Ftest-crlf.xlsx'
         14        SEND_VAL                                                 '%0D%0A'
         15        DO_ICALL                                                 
    8    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'mime_content_type'
         18        SEND_VAL                                                 '%2Ftmp%2Ftest-crlf.xlsx'
         19        DO_ICALL                                         $5      
         20        SEND_VAR                                                 $5
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
260.44 ms | 1004 KiB | 18 Q