3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items1 = array(new stdClass()); $items2 = array(new stdClass(), new stdClass()); $items3 = array(new stdClass(), new stdClass(), new stdClass()); function doCompare($a, $b){ return $a === $b; }; $udiff1 = array_udiff($items1, $items1, 'doCompare'); $udiff2 = array_udiff($items2, $items2, 'doCompare'); $udiff3 = array_udiff($items3, $items3, 'doCompare'); var_dump($udiff1, $udiff2, $udiff3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3TDgD
function name:  (null)
number of ops:  45
compiled vars:  !0 = $items1, !1 = $items2, !2 = $items3, !3 = $udiff1, !4 = $udiff2, !5 = $udiff3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $6      'stdClass'
          1        DO_FCALL                                      0          
          2        INIT_ARRAY                                       ~8      $6
          3        ASSIGN                                                   !0, ~8
    4     4        NEW                                              $10     'stdClass'
          5        DO_FCALL                                      0          
          6        INIT_ARRAY                                       ~12     $10
          7        NEW                                              $13     'stdClass'
          8        DO_FCALL                                      0          
          9        ADD_ARRAY_ELEMENT                                ~12     $13
         10        ASSIGN                                                   !1, ~12
    5    11        NEW                                              $16     'stdClass'
         12        DO_FCALL                                      0          
         13        INIT_ARRAY                                       ~18     $16
         14        NEW                                              $19     'stdClass'
         15        DO_FCALL                                      0          
         16        ADD_ARRAY_ELEMENT                                ~18     $19
         17        NEW                                              $21     'stdClass'
         18        DO_FCALL                                      0          
         19        ADD_ARRAY_ELEMENT                                ~18     $21
         20        ASSIGN                                                   !2, ~18
   11    21        INIT_FCALL                                               'array_udiff'
         22        SEND_VAR                                                 !0
         23        SEND_VAR                                                 !0
         24        SEND_VAL                                                 'doCompare'
         25        DO_ICALL                                         $24     
         26        ASSIGN                                                   !3, $24
   12    27        INIT_FCALL                                               'array_udiff'
         28        SEND_VAR                                                 !1
         29        SEND_VAR                                                 !1
         30        SEND_VAL                                                 'doCompare'
         31        DO_ICALL                                         $26     
         32        ASSIGN                                                   !4, $26
   13    33        INIT_FCALL                                               'array_udiff'
         34        SEND_VAR                                                 !2
         35        SEND_VAR                                                 !2
         36        SEND_VAL                                                 'doCompare'
         37        DO_ICALL                                         $28     
         38        ASSIGN                                                   !5, $28
   15    39        INIT_FCALL                                               'var_dump'
         40        SEND_VAR                                                 !3
         41        SEND_VAR                                                 !4
         42        SEND_VAR                                                 !5
         43        DO_ICALL                                                 
         44      > RETURN                                                   1

Function docompare:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3TDgD
function name:  doCompare
number of ops:  5
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        IS_IDENTICAL                                     ~2      !0, !1
          3      > RETURN                                                   ~2
    9     4*     > RETURN                                                   null

End of function docompare

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.7 ms | 1400 KiB | 17 Q