3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = ['first' => 'name', 'last' => null, [], new stdClass()]; $b = ['last' => null]; $diff = array_diff_assoc($a, $b); var_dump($diff);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iaKZF
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $b, !2 = $diff
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_ARRAY                                           ~3      'name', 'first'
          1        ADD_ARRAY_ELEMENT                                    ~3      null, 'last'
          2        ADD_ARRAY_ELEMENT                                    ~3      <array>
          3        NEW                                                  $4      'stdClass'
          4        DO_FCALL                                          0          
          5        ADD_ARRAY_ELEMENT                                    ~3      $4
          6        ASSIGN                                                       !0, ~3
    4     7        ASSIGN                                                       !1, <array>
    5     8        INIT_FCALL                                                   'array_diff_assoc'
          9        SEND_VAR                                                     !0
         10        SEND_VAR                                                     !1
         11        DO_ICALL                                             $8      
         12        ASSIGN                                                       !2, $8
    6    13        INIT_FCALL                                                   'var_dump'
         14        SEND_VAR                                                     !2
         15        DO_ICALL                                                     
         16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.63 ms | 798 KiB | 10 Q