3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyCountable implements Countable { public function count($mySpecialFilterArgument = null) { if($mySpecialFilterArgument === null) { // expect that we were called from count($myCountable) } else { // expect that we manually called $myCountable->count($mySpecialFilterArgument) } } } $myCountable = new MyCountable;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JeXuZ
function name:  (null)
number of ops:  5
compiled vars:  !0 = $myCountable
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CLASS                                            'mycountable'
   14     1        NEW                                              $1      'MyCountable'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
          4      > RETURN                                                   1

Class MyCountable:
Function count:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/JeXuZ
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        TYPE_CHECK                                    2          !0
          2      > JMPZ                                                     ~1, ->4
          3    > > JMP                                                      ->4
   11     4    > > RETURN                                                   null

End of function count

End of class MyCountable.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.8 ms | 1393 KiB | 13 Q