3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testcase = 'DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trello.com; q=dns/txt; s=dkim; bh=zmLkmznXksSFNlY+E/SQwF4vaDducoC91+u20p18W38=; h=from:sender:subject:to:mime-version:content-type; b=XFKjy/g96z0Iv8qDg+IPb4EXYSujEVf/indwAV64icAXv/wceXEgQPLXury2HKBn5/Tk7DbgU HW4duCjde16IKgMOd5xf7n8duXbzhEESD5a3CXSo9QNOjYH1hwsdx8oguz+RWL3Zw4ZJfXjGCzS +LMZig06tV0tF8zFTuAHfRY= Content-Type: multipart/alternative; boundary="----sinikael-?=_1-14883656976170.4675149679677584'; function test($name, array $headers) { echo 'Test in mode "' . $name . '": '; if (isset($headers['Content-Type'])) { echo "OK!\n"; } else { echo "Content-Type header not found:\n"; print_r($headers); } } test('strict', iconv_mime_decode_headers($testcase, ICONV_MIME_DECODE_STRICT, 'utf-8')); test('continue', iconv_mime_decode_headers($testcase, ICONV_MIME_DECODE_CONTINUE_ON_ERROR, 'utf-8'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nfLjB
function name:  (null)
number of ops:  20
compiled vars:  !0 = $testcase
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   QM_ASSIGN                                                !0
  24     1        INIT_FCALL                                               'test'
         2        SEND_VAL                                                 'strict'
         3        INIT_FCALL                                               'iconv_mime_decode_headers'
         4        SEND_VAR                                                 !0
         5        SEND_VAL                                                 1
         6        SEND_VAL                                                 'utf-8'
         7        DO_ICALL                                         $2      
         8        SEND_VAR                                                 $2
         9        DO_FCALL                                      0          
  25    10        INIT_FCALL                                               'test'
        11        SEND_VAL                                                 'continue'
        12        INIT_FCALL                                               'iconv_mime_decode_headers'
        13        SEND_VAR                                                 !0
        14        SEND_VAL                                                 2
        15        SEND_VAL                                                 'utf-8'
        16        DO_ICALL                                         $4      
        17        SEND_VAR                                                 $4
        18        DO_FCALL                                      0          
        19      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nfLjB
function name:  test
number of ops:  14
compiled vars:  !0 = $name, !1 = $headers
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  13     0  E >   RECV                                             !0      
         1        RECV                                             !1      
  15     2        CONCAT                                           ~2      'Test+in+mode+%22', !0
         3        CONCAT                                           ~3      ~2, '%22%3A+'
         4        ASSIGN_OBJ                                               ~3
  16     5        ISSET_ISEMPTY_DIM_OBJ                         0  ~4      !1, 'Content-Type'
         6      > JMPZ                                                     ~4, ->9
  17     7    >   ASSIGN_OBJ                                               'OK%21%0A'
         8      > JMP                                                      ->13
  19     9    >   ASSIGN_OBJ                                               'Content-Type+header+not+found%3A%0A'
  20    10        INIT_FCALL                                               'print_r'
        11        SEND_VAR                                                 !1
        12        DO_ICALL                                                 
  22    13    > > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
72.37 ms | 895 KiB | 7 Q