3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface i1 { public function f1(array $x = array(), stdClass $b = null); } class c1 implements i1 { public function f1($x = array(), stdClass $q = null) { echo __CLASS__ . PHP_EOL; } } $x = new c1();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QmZl6
function name:  (null)
number of ops:  5
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   DECLARE_CLASS                                            'c1'
   12     1        NEW                                              $1      'c1'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
          4      > RETURN                                                   1

Class i1:
Function f1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QmZl6
function name:  f1
number of ops:  3
compiled vars:  !0 = $x, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      <array>
          1        RECV_INIT                                        !1      null
          2      > RETURN                                                   null

End of function f1

End of class i1.

Class c1:
Function f1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QmZl6
function name:  f1
number of ops:  4
compiled vars:  !0 = $x, !1 = $q
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV_INIT                                        !0      <array>
          1        RECV_INIT                                        !1      null
    8     2        ECHO                                                     'c1%0A'
    9     3      > RETURN                                                   null

End of function f1

End of class c1.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.05 ms | 1394 KiB | 13 Q