3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Mom { public function Talks(); } function dump($obj) { var_dump($obj); } dump(new class implements Mom { public function Talks($invalid) { } });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jWMQ7
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'dump'
          1        DECLARE_ANON_CLASS                               <const ast>   
          2        NEW                                              $1      $0
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $1
          5        DO_FCALL                                      0          
   15     6      > RETURN                                                   1

Function dump:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jWMQ7
function name:  dump
number of ops:  5
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    9     4      > RETURN                                                   null

End of function dump

Class Mom:
Function talks:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jWMQ7
function name:  Talks
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   null

End of function talks

End of class Mom.

Class Mom@anonymous:
Function talks:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jWMQ7
function name:  Talks
number of ops:  2
compiled vars:  !0 = $invalid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   14     1      > RETURN                                                   null

End of function talks

End of class Mom@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173 ms | 1398 KiB | 16 Q