3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface A { public function A($a); } class AB implements A { public function A($b) { print "hello" . $b; } } (new AB)->A('123');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qN9IV
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                                'ab'
   13     1        NEW                                                  $0      'AB'
          2        DO_FCALL                                          0          
          3        INIT_METHOD_CALL                                             $0, 'A'
          4        SEND_VAL_EX                                                  '123'
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

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

End of function a

End of class A.

Class AB:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qN9IV
function name:  A
number of ops:  4
compiled vars:  !0 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   RECV                                                 !0      
    9     1        CONCAT                                               ~1      'hello', !0
          2        ECHO                                                         ~1
   10     3      > RETURN                                                       null

End of function a

End of class AB.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.2 ms | 2123 KiB | 13 Q