3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myfunction($v1,$v2) { if ($v1===$v2) { return 0; } if ($v1 > $v2) return 1; return -1; } $a1=array('idev_pages_pages.uid', 'idev_pages_pages.parent', 'name'); $a2=array('name', 'url', 'menu_text'); print_r(array_uintersect($a1,$a2,"myfunction"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ndVbD
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a1, !1 = $a2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN                                                   !0, <array>
   13     1        ASSIGN                                                   !1, <array>
   14     2        INIT_FCALL                                               'print_r'
          3        INIT_FCALL                                               'array_uintersect'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 'myfunction'
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function myfunction:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ndVbD
function name:  myfunction
number of ops:  10
compiled vars:  !0 = $v1, !1 = $v2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        IS_IDENTICAL                                             !0, !1
          3      > JMPZ                                                     ~2, ->5
    7     4    > > RETURN                                                   0
    9     5    >   IS_SMALLER                                               !1, !0
          6      > JMPZ                                                     ~3, ->8
          7    > > RETURN                                                   1
   10     8    > > RETURN                                                   -1
   11     9*     > RETURN                                                   null

End of function myfunction

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.7 ms | 1387 KiB | 17 Q