3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { public function phpyh(string $x): iterable; } abstract class A implements I { abstract public function phpyh(int|string $x): array|\Generator; } interface I2 { public function phpyh(float $x, string $y): array; } final class B extends A implements I, I2 { public function phpyh(int|string|float $x, string $y = 'С 8 марта!'): array { return []; } } new B();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2Y1eu
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'a'
   18     1        DECLARE_CLASS                                            'b', 'a'
   26     2        NEW                                              $0      'B'
          3        DO_FCALL                                      0          
          4        FREE                                                     $0
          5      > RETURN                                                   1

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

End of function phpyh

End of class I.

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

End of function phpyh

End of class A.

Class I2:
Function phpyh:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2Y1eu
function name:  phpyh
number of ops:  4
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        VERIFY_RETURN_TYPE                                       
          3      > RETURN                                                   null

End of function phpyh

End of class I2.

Class B:
Function phpyh:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2Y1eu
function name:  phpyh
number of ops:  5
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      '%D0%A1+8+%D0%BC%D0%B0%D1%80%D1%82%D0%B0%21'
   22     2      > RETURN                                                   <array>
   23     3*       VERIFY_RETURN_TYPE                                       
          4*     > RETURN                                                   null

End of function phpyh

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.98 ms | 1395 KiB | 13 Q