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($count) { echo $count; } } $s = new Sparrow(); var_dump($s);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ootdU
function name:  (null)
number of ops:  8
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   DECLARE_CLASS                                            'sparrow'
   30     1        NEW                                              $1      'Sparrow'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   32     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Class bird:
Function clonebird:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ootdU
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/ootdU
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

End of class Sparrow.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.72 ms | 1386 KiB | 15 Q