3v4l.org

run code in 300+ PHP versions simultaneously
<?php Interface MyCountableInterface { public function count($mode); } class MyCountable implements MyCountableInterface { public function count($myFilterArgument = null) { } } $myCountable = new MyCountable; $myCountable->count(1); count($myCountable); count($myCountable, COUNT_NORMAL); count($myCountable, COUNT_RECURSIVE);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pnIBB
function name:  (null)
number of ops:  18
compiled vars:  !0 = $myCountable
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'mycountable'
   15     1        NEW                                              $1      'MyCountable'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   16     4        INIT_METHOD_CALL                                         !0, 'count'
          5        SEND_VAL_EX                                              1
          6        DO_FCALL                                      0          
   17     7        COUNT                                            ~5      !0
          8        FREE                                                     ~5
   18     9        INIT_FCALL                                               'count'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 0
         12        DO_ICALL                                                 
   19    13        INIT_FCALL                                               'count'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Class MyCountableInterface:
Function count:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pnIBB
function name:  count
number of ops:  2
compiled vars:  !0 = $mode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function count

End of class MyCountableInterface.

Class MyCountable:
Function count:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pnIBB
function name:  count
number of ops:  2
compiled vars:  !0 = $myFilterArgument
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV_INIT                                        !0      null
   12     1      > RETURN                                                   null

End of function count

End of class MyCountable.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.82 ms | 1396 KiB | 15 Q