3v4l.org

run code in 300+ PHP versions simultaneously
<?php $allowed_html = [ 'div' => [ 'class' => true ], ]; $elem = 'DIV'; var_dump( ( ! isset( $allowed_html[ $elem ] ) ) ); var_dump( ( ! isset( $allowed_html[ strtolower( $elem ) ] ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5X0OJ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $allowed_html, !1 = $elem
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN                                                   !1, 'DIV'
    9     2        INIT_FCALL                                               'var_dump'
          3        ISSET_ISEMPTY_DIM_OBJ                         0  ~4      !0, !1
          4        BOOL_NOT                                         ~5      ~4
          5        SEND_VAL                                                 ~5
          6        DO_ICALL                                                 
   10     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'strtolower'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $7      
         11        ISSET_ISEMPTY_DIM_OBJ                         0  ~8      !0, $7
         12        BOOL_NOT                                         ~9      ~8
         13        SEND_VAL                                                 ~9
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.22 ms | 953 KiB | 15 Q