3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Pager { public function fetch($page = 0, ...$categories); } class DbPager implements Pager { public function fetch($seite = 0, ...$kategorien) { var_dump($kategorien); } } $dbPager = new DbPager(); $dbPager->fetch(page: 1, categories: 2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MhJ79
function name:  (null)
number of ops:  10
compiled vars:  !0 = $dbPager
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'dbpager'
   16     1        NEW                                              $1      'DbPager'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   17     4        INIT_METHOD_CALL                                         !0, 'fetch'
          5        SEND_VAL_EX                                              1, 'page'
          6        SEND_VAL_EX                                              2, 'categories'
          7        CHECK_UNDEF_ARGS                                         
          8        DO_FCALL                                      1          
          9      > RETURN                                                   1

Class Pager:
Function fetch:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MhJ79
function name:  fetch
number of ops:  3
compiled vars:  !0 = $page, !1 = $categories
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                        !0      0
          1        RECV_VARIADIC                                    !1      
          2      > RETURN                                                   null

End of function fetch

End of class Pager.

Class DbPager:
Function fetch:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MhJ79
function name:  fetch
number of ops:  6
compiled vars:  !0 = $seite, !1 = $kategorien
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV_INIT                                        !0      0
          1        RECV_VARIADIC                                    !1      
   12     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                                 
   13     5      > RETURN                                                   null

End of function fetch

End of class DbPager.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.61 ms | 1436 KiB | 14 Q