3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Action { public function sayHello($string, $test=false); } interface AddAction extends Action { public function sayHello($string, $test=false); } class Add implements AddAction { public function sayHello($string, $test=false) { echo $string, PHP_EOL; } } $x = new Add(); $x->sayHello("hi");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OZ8Jf
function name:  (null)
number of ops:  9
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'addaction'
   13     1        DECLARE_CLASS                                            'add'
   21     2        NEW                                              $1      'Add'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   22     5        INIT_METHOD_CALL                                         !0, 'sayHello'
          6        SEND_VAL_EX                                              'hi'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class Action:
Function sayhello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OZ8Jf
function name:  sayHello
number of ops:  3
compiled vars:  !0 = $string, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <false>
          2      > RETURN                                                   null

End of function sayhello

End of class Action.

Class AddAction:
Function sayhello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OZ8Jf
function name:  sayHello
number of ops:  3
compiled vars:  !0 = $string, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <false>
          2      > RETURN                                                   null

End of function sayhello

End of class AddAction.

Class Add:
Function sayhello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OZ8Jf
function name:  sayHello
number of ops:  5
compiled vars:  !0 = $string, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <false>
   17     2        ECHO                                                     !0
          3        ECHO                                                     '%0A'
   18     4      > RETURN                                                   null

End of function sayhello

End of class Add.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.32 ms | 1386 KiB | 13 Q