3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $a = 'hello'; } interface Loggable { public function log(); } class QMSLogger implements Loggable { public function log(Foo $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/gW2cM
function name:  (null)
number of ops:  7
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   DECLARE_CLASS                                            'qmslogger'
   21     1        NEW                                              $1      'QMSLogger'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   22     4        INIT_METHOD_CALL                                         !0, 'log'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class Foo: [no user functions]
Class Loggable:
Function log:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gW2cM
function name:  log
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     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/gW2cM
function name:  log
number of ops:  3
compiled vars:  !0 = $queueName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV_INIT                                        !0      null
   17     1        ECHO                                                     'Foo'
   18     2      > RETURN                                                   null

End of function log

End of class QMSLogger.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.78 ms | 1393 KiB | 13 Q