3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rules = [ "0" => "id" , "1" => "message",2=>'data']; $send = [ "id" => "132574" , "message" => "Hello!"]; $send_keys = array_keys($send); $diff_array = array_diff($rules,$send_keys); print_r($diff_array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4bhNp
function name:  (null)
number of ops:  15
compiled vars:  !0 = $rules, !1 = $send, !2 = $send_keys, !3 = $diff_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'array_keys'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !2, $6
    7     6        INIT_FCALL                                               'array_diff'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !3, $8
    8    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !3
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.8 ms | 1011 KiB | 16 Q