3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_roles = array( '2' => 'authenticated', '3' => 'admin', ); $exempt = array( '4' => '3', ); $intersect = array_intersect_key($user_roles, $exempt); if (!$intersect) { print_r('made it'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/5JeOI
function name:  (null)
number of ops:  13
compiled vars:  !0 = $user_roles, !1 = $exempt, !2 = $intersect
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, <array>
   12     2        INIT_FCALL                                               'array_intersect_key'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
   13     7        BOOL_NOT                                         ~7      !2
          8      > JMPZ                                                     ~7, ->12
   14     9    >   INIT_FCALL                                               'print_r'
         10        SEND_VAL                                                 'made+it'
         11        DO_ICALL                                                 
   15    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.31 ms | 1394 KiB | 17 Q