3v4l.org

run code in 300+ PHP versions simultaneously
<?php $headers = array( 'User-Agent' => 'Mozilla', ); $headers = array_change_key_case($headers); // Convert all keys to lower $keyExists = array_key_exists('user-agent', $headers); var_dump($keyExists);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/deZF4
function name:  (null)
number of ops:  11
compiled vars:  !0 = $headers, !1 = $keyExists
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1        INIT_FCALL                                               'array_change_key_case'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    7     5        ARRAY_KEY_EXISTS                                 ~5      'user-agent', !0
          6        ASSIGN                                                   !1, ~5
    8     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
125.2 ms | 1445 KiB | 15 Q