3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyCountable implements Countable { public function count($mySpecialFilterArgument = null) { var_dump($mySpecialFilterArgument); } } $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/vQmK5
function name:  (null)
number of ops:  18
compiled vars:  !0 = $myCountable
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CLASS                                            'mycountable'
   10     1        NEW                                              $1      'MyCountable'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   11     4        INIT_METHOD_CALL                                         !0, 'count'
          5        SEND_VAL_EX                                              1
          6        DO_FCALL                                      0          
   12     7        COUNT                                            ~5      !0
          8        FREE                                                     ~5
   13     9        INIT_FCALL                                               'count'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 0
         12        DO_ICALL                                                 
   14    13        INIT_FCALL                                               'count'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

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

End of function count

End of class MyCountable.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.45 ms | 1395 KiB | 17 Q