3v4l.org

run code in 300+ PHP versions simultaneously
<?php $requiredAttributes = array('email', 'id', 'first_name', 'last_name'); $user= array('email' => 1, ); $missing = array_diff_key(array_flip($requiredAttributes), $user); var_dump($missing); if (array()) { var_dump("hello"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/L9cBs
function name:  (null)
number of ops:  18
compiled vars:  !0 = $requiredAttributes, !1 = $user, !2 = $missing
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'array_diff_key'
          3        INIT_FCALL                                               'array_flip'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        SEND_VAR                                                 $5
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !2, $6
    7    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
   10    13      > JMPZ                                                     <array>, ->17
   11    14    >   INIT_FCALL                                               'var_dump'
         15        SEND_VAL                                                 'hello'
         16        DO_ICALL                                                 
   12    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.82 ms | 1395 KiB | 19 Q