3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface foo { public function test($foo = true, $bar = false); } class bar implements foo { public function test($baz = false) {echo 'test'; } } $a = new bar(); $a->test('lol');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GML8l
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'bar'
    4     1        NEW                                              $1      'bar'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    5     4        INIT_METHOD_CALL                                         !0, 'test'
          5        SEND_VAL_EX                                              'lol'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

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

End of function test

End of class foo.

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

End of function test

End of class bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.26 ms | 1393 KiB | 13 Q