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);var_dump($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'); array_uintersect($a1,$a2,"myfunction");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a4IJm
function name:  (null)
number of ops:  8
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                                               'array_uintersect'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 'myfunction'
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function myfunction:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 24
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a4IJm
function name:  myfunction
number of ops:  26
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
         14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
    7    18        IS_IDENTICAL                                             !0, !1
         19      > JMPZ                                                     ~7, ->21
    9    20    > > RETURN                                                   0
   11    21    >   IS_SMALLER                                               !1, !0
         22      > JMPZ                                                     ~8, ->24
         23    > > RETURN                                                   1
   12    24    > > RETURN                                                   -1
   13    25*     > RETURN                                                   null

End of function myfunction

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.37 ms | 1396 KiB | 19 Q