3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface Foo { public function render(bool $x = false); } class X implements Foo { public function render(bool $x = false) { var_dump($x); } } (new X())->render(null);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/asm4Y
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                                'x'
   16     1        NEW                                                  $0      'X'
          2        DO_FCALL                                          0          
          3        INIT_METHOD_CALL                                             $0, 'render'
          4        SEND_VAL_EX                                                  null
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

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

End of function render

End of class Foo.

Class X:
Function render:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/asm4Y
function name:  render
number of ops:  5
compiled vars:  !0 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   RECV_INIT                                            !0      <false>
   12     1        INIT_FCALL                                                   'var_dump'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                                     
   13     4      > RETURN                                                       null

End of function render

End of class X.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.48 ms | 2084 KiB | 14 Q