3v4l.org

run code in 300+ PHP versions simultaneously
<?php $finfo = new finfo(FILEINFO_MIME_TYPE); var_dump($finfo->buffer("<?php\nclass A{}")); var_dump($finfo->buffer("<?php class A{}")); var_dump($finfo->buffer("<?php\tclass A{}")); var_dump($finfo->buffer("<?php\n\rclass A{}"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2ZP6h
function name:  (null)
number of ops:  29
compiled vars:  !0 = $finfo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'finfo'
          1        SEND_VAL_EX                                              16
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    5     4        INIT_FCALL                                               'var_dump'
          5        INIT_METHOD_CALL                                         !0, 'buffer'
          6        SEND_VAL_EX                                              '%3C%3Fphp%0Aclass+A%7B%7D'
          7        DO_FCALL                                      0  $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'var_dump'
         11        INIT_METHOD_CALL                                         !0, 'buffer'
         12        SEND_VAL_EX                                              '%3C%3Fphp+class+A%7B%7D'
         13        DO_FCALL                                      0  $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                                 
    7    16        INIT_FCALL                                               'var_dump'
         17        INIT_METHOD_CALL                                         !0, 'buffer'
         18        SEND_VAL_EX                                              '%3C%3Fphp%09class+A%7B%7D'
         19        DO_FCALL                                      0  $8      
         20        SEND_VAR                                                 $8
         21        DO_ICALL                                                 
    8    22        INIT_FCALL                                               'var_dump'
         23        INIT_METHOD_CALL                                         !0, 'buffer'
         24        SEND_VAL_EX                                              '%3C%3Fphp%0A%0Dclass+A%7B%7D'
         25        DO_FCALL                                      0  $10     
         26        SEND_VAR                                                 $10
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.67 ms | 1395 KiB | 15 Q