3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myfunction_value($a,$b) { var_dump($a,$b); if ($a===$b) { return 0; } return ($a>$b)?1:-1; } $a1=array("a"=>"red","b"=>"green","c"=>"blue"); $a2=array("a"=>"red","b"=>"green","c"=>"green"); $result=array_udiff_assoc($a1,$a2,"myfunction_value");die; print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/b5LJ6
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a1, !1 = $a2, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ASSIGN                                                   !0, <array>
   15     1        ASSIGN                                                   !1, <array>
   17     2        INIT_FCALL                                               'array_udiff_assoc'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 'myfunction_value'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !2, $5
          8      > EXIT                                                     
   18     9*       INIT_FCALL                                               'print_r'
         10*       SEND_VAR                                                 !2
         11*       DO_ICALL                                                 
         12*     > RETURN                                                   1

Function myfunction_value:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b5LJ6
function name:  myfunction_value
number of ops:  16
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
    7     6        IS_IDENTICAL                                             !0, !1
          7      > JMPZ                                                     ~3, ->9
    9     8    > > RETURN                                                   0
   11     9    >   IS_SMALLER                                               !1, !0
         10      > JMPZ                                                     ~4, ->13
         11    >   QM_ASSIGN                                        ~5      1
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~5      -1
         14    > > RETURN                                                   ~5
   12    15*     > RETURN                                                   null

End of function myfunction_value

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.82 ms | 1400 KiB | 19 Q