3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Test { public function test($param); } class MyTest implements Test { public function test($param, $optional = false) { echo $param; } } class YourTest extends MyTest { public function test($param) { echo $param; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7b7st
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'mytest'
   13     1        DECLARE_CLASS                                            'yourtest', 'mytest'
   17     2      > RETURN                                                   1

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

End of function test

End of class Test.

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

End of function test

End of class MyTest.

Class YourTest:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7b7st
function name:  test
number of ops:  3
compiled vars:  !0 = $param
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
   15     1        ECHO                                                     !0
   16     2      > RETURN                                                   null

End of function test

End of class YourTest.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.67 ms | 1394 KiB | 13 Q