3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = (object) ['color' => 'red', 'foo' => 'bar']; $b = (object) ['color' => 'green', 'foo' => 'bar']; echo $diff = array_diff(get_object_vars($a), get_object_vars($b));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u226V
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 >   CAST                                          8  ~3      <array>
          1        ASSIGN                                                   !0, ~3
    4     2        CAST                                          8  ~5      <array>
          3        ASSIGN                                                   !1, ~5
    6     4        INIT_FCALL                                               'array_diff'
          5        INIT_FCALL                                               'get_object_vars'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $7      
          8        SEND_VAR                                                 $7
          9        INIT_FCALL                                               'get_object_vars'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $8      
         12        SEND_VAR                                                 $8
         13        DO_ICALL                                         $9      
         14        ASSIGN                                           ~10     !2, $9
         15        ECHO                                                     ~10
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.1 ms | 935 KiB | 18 Q