3v4l.org

run code in 500+ PHP versions simultaneously
<?php Interface foo { public function bar($argument); } class A implements foo { public function bar(string $argument) { return $argument; } } $a = new A(); var_dump($a->bar('foo'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cMfng
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                                'a'
   13     1        NEW                                                  $1      'A'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
   15     4        INIT_FCALL                                                   'var_dump'
          5        INIT_METHOD_CALL                                             !0, 'bar'
          6        SEND_VAL_EX                                                  'foo'
          7        DO_FCALL                                          0  $4      
          8        SEND_VAR                                                     $4
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

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

End of function bar

End of class foo.

Class A:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cMfng
function name:  bar
number of ops:  3
compiled vars:  !0 = $argument
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   RECV                                                 !0      
    9     1      > RETURN                                                       !0
   10     2*     > RETURN                                                       null

End of function bar

End of class A.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
236.68 ms | 2128 KiB | 14 Q