3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public static function fromScalar($scalar); } class Bar implements Foo { public static function fromScalar($scalar) { echo 'Hello' . PHP_EOL; } } class Baz implements Foo { }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L2ANZ
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'bar'
   13     1        DECLARE_CLASS                                            'baz'
   15     2      > RETURN                                                   1

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

End of function fromscalar

End of class Foo.

Class Bar:
Function fromscalar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L2ANZ
function name:  fromScalar
number of ops:  3
compiled vars:  !0 = $scalar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        ECHO                                                     'Hello%0A'
   10     2      > RETURN                                                   null

End of function fromscalar

End of class Bar.

Class Baz: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.8 ms | 1393 KiB | 13 Q