3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface X { public function read($foo): void; } class Y implements X { public function read(string $foo): void { echo $foo; } } (new Y)->read('bar');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h6Ehe
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                                'y'
   16     1        NEW                                                  $0      'Y'
          2        DO_FCALL                                          0          
          3        INIT_METHOD_CALL                                             $0, 'read'
          4        SEND_VAL_EX                                                  'bar'
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

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

End of function read

End of class X.

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

End of function read

End of class Y.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.05 ms | 1877 KiB | 13 Q