3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface SomeInterface { public function getString() : string; } class SomeClass implements SomeInterface { public function getString() { return 'some string'; } } var_dump((new SomeClass())->getString());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/miJ1P
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   DECLARE_CLASS                                            'someclass'
   20     1        INIT_FCALL                                               'var_dump'
          2        NEW                                              $0      'SomeClass'
          3        DO_FCALL                                      0          
          4        INIT_METHOD_CALL                                         $0, 'getString'
          5        DO_FCALL                                      0  $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

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

End of function getstring

End of class SomeInterface.

Class SomeClass:
Function getstring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/miJ1P
function name:  getString
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E > > RETURN                                                   'some+string'
   16     1*     > RETURN                                                   null

End of function getstring

End of class SomeClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.19 ms | 1386 KiB | 15 Q