3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function doFoo(string $s = null, string ...$j) { } } class Bar extends Foo { public function doFoo(string $s = null, string ...$j) { } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pm1Qn
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E > > RETURN                                                   1

Class Foo:
Function dofoo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pm1Qn
function name:  doFoo
number of ops:  3
compiled vars:  !0 = $s, !1 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV_INIT                                        !0      null
          1        RECV_VARIADIC                                    !1      
    9     2      > RETURN                                                   null

End of function dofoo

End of class Foo.

Class Bar:
Function dofoo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pm1Qn
function name:  doFoo
number of ops:  3
compiled vars:  !0 = $s, !1 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV_INIT                                        !0      null
          1        RECV_VARIADIC                                    !1      
   19     2      > RETURN                                                   null

End of function dofoo

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.59 ms | 1393 KiB | 13 Q