3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myfunction($v1,$v2) { $v1 = preg_replace('#^(idev_pages_pages\.|idev_pages_pages_lang\.)#','',$v1); $v2 = preg_replace('#^(idev_pages_pages\.|idev_pages_pages_lang\.)#','',$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/UT7Sc
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a1, !1 = $a2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ASSIGN                                                   !0, <array>
   15     1        ASSIGN                                                   !1, <array>
   16     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 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UT7Sc
function name:  myfunction
number of ops:  22
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        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%23%5E%28idev_pages_pages%5C.%7Cidev_pages_pages_lang%5C.%29%23'
          4        SEND_VAL                                                 ''
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        ASSIGN                                                   !0, $2
    6     8        INIT_FCALL                                               'preg_replace'
          9        SEND_VAL                                                 '%23%5E%28idev_pages_pages%5C.%7Cidev_pages_pages_lang%5C.%29%23'
         10        SEND_VAL                                                 ''
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $4      
         13        ASSIGN                                                   !1, $4
    7    14        IS_IDENTICAL                                             !0, !1
         15      > JMPZ                                                     ~6, ->17
    9    16    > > RETURN                                                   0
   11    17    >   IS_SMALLER                                               !1, !0
         18      > JMPZ                                                     ~7, ->20
         19    > > RETURN                                                   1
   12    20    > > RETURN                                                   -1
   13    21*     > RETURN                                                   null

End of function myfunction

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
217.19 ms | 1396 KiB | 19 Q