3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MaClasse { public function demo(): string { return 'Closed!'; } } final class Ma2ndClasse extends MaClasse { public function demo(): string { return 'Opened at last!'; } } echo (new Ma2ndClasse())->demo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bkJn2
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $0      'Ma2ndClasse'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'demo'
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
          5      > RETURN                                                   1

Class MaClasse:
Function demo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bkJn2
function name:  demo
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   'Closed%21'
    8     1*       VERIFY_RETURN_TYPE                                       
          2*     > RETURN                                                   null

End of function demo

End of class MaClasse.

Class Ma2ndClasse:
Function demo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bkJn2
function name:  demo
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E > > RETURN                                                   'Opened+at+last%21'
   16     1*       VERIFY_RETURN_TYPE                                       
          2*     > RETURN                                                   null

End of function demo

End of class Ma2ndClasse.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
206.93 ms | 1394 KiB | 13 Q