3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface Loggable { public function log(); } class QMSLogger implements Loggable { public function log($queueName = null) { echo "Foo"; } } $foo = new QMSLogger(); $foo->log();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lUclv
function name:  (null)
number of ops:  7
compiled vars:  !0 = $foo
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   DECLARE_CLASS                                                'qmslogger'
   17     1        NEW                                                  $1      'QMSLogger'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
   18     4        INIT_METHOD_CALL                                             !0, 'log'
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

Class Loggable:
Function log:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lUclv
function name:  log
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                       null

End of function log

End of class Loggable.

Class QMSLogger:
Function log:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lUclv
function name:  log
number of ops:  3
compiled vars:  !0 = $queueName
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   RECV_INIT                                            !0      null
   13     1        ECHO                                                         'Foo'
   14     2      > RETURN                                                       null

End of function log

End of class QMSLogger.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.23 ms | 2907 KiB | 13 Q