3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function render(bool $x = null); } class X implements Foo { public function render(bool $x = false) { var_dump($x); } } (new X())->render();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KuM1M
function name:  (null)
number of ops:  6
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        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Foo:
Function render:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KuM1M
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      null
          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/KuM1M
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.0.0


preferences:
145.26 ms | 997 KiB | 14 Q