3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = 'test.tmp'; file_put_contents("abcd", $path); var_dump(mime_content_type($path) === 'text/plain'); file_put_contents("abc", $path); var_dump(mime_content_type($path) === 'text/plain');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s81lN
function name:  (null)
number of ops:  24
compiled vars:  !0 = $path
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'test.tmp'
    4     1        INIT_FCALL                                               'file_put_contents'
          2        SEND_VAL                                                 'abcd'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    5     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'mime_content_type'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        IS_IDENTICAL                                     ~4      $3, 'text%2Fplain'
         10        SEND_VAL                                                 ~4
         11        DO_ICALL                                                 
    7    12        INIT_FCALL                                               'file_put_contents'
         13        SEND_VAL                                                 'abc'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
    8    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'mime_content_type'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $7      
         20        IS_IDENTICAL                                     ~8      $7, 'text%2Fplain'
         21        SEND_VAL                                                 ~8
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.44 ms | 1395 KiB | 19 Q