3v4l.org

run code in 500+ PHP versions simultaneously
<?php preg_match('/x-archive-guessed-charset: (.*)/', 'x-archive-guessed-charset: windows-1251', $encoding); print_r($encoding); echo $encoding[1];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RoZd7
function name:  (null)
number of ops:  11
compiled vars:  !0 = $encoding
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                                   'preg_match'
          1        SEND_VAL                                                     '%2Fx-archive-guessed-charset%3A+%28.%2A%29%2F'
          2        SEND_VAL                                                     'x-archive-guessed-charset%3A+windows-1251'
          3        SEND_REF                                                     !0
          4        DO_ICALL                                                     
    5     5        INIT_FCALL                                                   'print_r'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                                     
    6     8        FETCH_DIM_R                                          ~3      !0, 1
          9        ECHO                                                         ~3
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.33 ms | 1868 KiB | 15 Q