3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface bird { function setKind(string $type); /*function getKind(); function getLocation(); function setLocation(location $location); function flyTo(location $location); function setMelody(string $melody); function singMelody(); // вывод зависит от kind function killBird();*/ function cloneBird(int $count); } class Sparrow implements bird { public function cloneBird(int $count) { echo $count; } public function setKind(string $type) { echo $count; } } $s = new Sparrow(); $s->cloneBird(3); $s->setKind(3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a8MV4
function name:  (null)
number of ops:  11
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   DECLARE_CLASS                                            'sparrow'
   35     1        NEW                                              $1      'Sparrow'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   37     4        INIT_METHOD_CALL                                         !0, 'cloneBird'
          5        SEND_VAL_EX                                              3
          6        DO_FCALL                                      0          
   38     7        INIT_METHOD_CALL                                         !0, 'setKind'
          8        SEND_VAL_EX                                              3
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

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

End of function setkind

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

End of function clonebird

End of class bird.

Class Sparrow:
Function clonebird:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a8MV4
function name:  cloneBird
number of ops:  3
compiled vars:  !0 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   RECV                                             !0      
   26     1        ECHO                                                     !0
   27     2      > RETURN                                                   null

End of function clonebird

Function setkind:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a8MV4
function name:  setKind
number of ops:  3
compiled vars:  !0 = $type, !1 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   RECV                                             !0      
   31     1        ECHO                                                     !1
   32     2      > RETURN                                                   null

End of function setkind

End of class Sparrow.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.49 ms | 1386 KiB | 13 Q