3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( array_udiff( [$a = new \stdClass, $b = new \stdClass], [$c = new \stdClass, $b], function ($first, $second) { return $first === $second ? 0 : 1; } ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8rted
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
    4     1        INIT_FCALL                                               'array_udiff'
    5     2        NEW                                              $3      'stdClass'
          3        DO_FCALL                                      0          
          4        ASSIGN                                           ~5      !0, $3
          5        INIT_ARRAY                                       ~6      ~5
          6        NEW                                              $7      'stdClass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                           ~9      !1, $7
          9        ADD_ARRAY_ELEMENT                                ~6      ~9
         10        SEND_VAL                                                 ~6
    6    11        NEW                                              $10     'stdClass'
         12        DO_FCALL                                      0          
         13        ASSIGN                                           ~12     !2, $10
         14        INIT_ARRAY                                       ~13     ~12
         15        ADD_ARRAY_ELEMENT                                ~13     !1
         16        SEND_VAL                                                 ~13
    7    17        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F8rted%3A7%240'
    9    18        SEND_VAL                                                 ~14
         19        DO_ICALL                                         $15     
         20        SEND_VAR                                                 $15
         21        DO_ICALL                                                 
   11    22      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F8rted%3A7%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8rted
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $first, !1 = $second
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        IS_IDENTICAL                                             !0, !1
          3      > JMPZ                                                     ~2, ->6
          4    >   QM_ASSIGN                                        ~3      0
          5      > JMP                                                      ->7
          6    >   QM_ASSIGN                                        ~3      1
          7    > > RETURN                                                   ~3
    9     8*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F8rted%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.78 ms | 1396 KiB | 17 Q