3v4l.org

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

Function %00%7Bclosure%7D%2Fin%2FBBH9h%3A4%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 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BBH9h
function name:  {closure}
number of ops:  14
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        IS_IDENTICAL                                             !0, !1
          3      > JMPZ                                                     ~2, ->6
          4    >   QM_ASSIGN                                        ~3      0
          5      > JMP                                                      ->12
          6    >   IS_SMALLER                                               !1, !0
          7      > JMPZ                                                     ~4, ->10
          8    >   QM_ASSIGN                                        ~5      1
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~5      -1
         11    >   QM_ASSIGN                                        ~3      ~5
         12    > > RETURN                                                   ~3
    6    13*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FBBH9h%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.46 ms | 1395 KiB | 18 Q