3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface AnswerInterface { public function get(); public function the(); public function answer(); } // start editing h class Answer implements AnswerInterface { public function get() { function the() { function answer() { return 4; } } } } // end editing here $answer = new Answer; var_dump($answer); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J6ESH
function name:  (null)
number of ops:  8
compiled vars:  !0 = $answer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   DECLARE_CLASS                                            'answer'
   34     1        NEW                                              $1      'Answer'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   35     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
   36     7      > RETURN                                                   1

Function %00the%2Fin%2FJ6ESH%3A17%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J6ESH
function name:  the
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   DECLARE_FUNCTION                                         'answer'
   24     1      > RETURN                                                   null

End of function %00the%2Fin%2FJ6ESH%3A17%240

Function %00answer%2Fin%2FJ6ESH%3A19%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J6ESH
function name:  answer
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E > > RETURN                                                   4
   22     1*     > RETURN                                                   null

End of function %00answer%2Fin%2FJ6ESH%3A19%241

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

End of function get

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

End of function the

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

End of function answer

End of class AnswerInterface.

Class Answer:
Function get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J6ESH
function name:  get
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   DECLARE_FUNCTION                                         'the'
   26     1      > RETURN                                                   null

End of function get

End of class Answer.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.49 ms | 1400 KiB | 15 Q