3v4l.org

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

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

End of function get

End of class Faa.

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

End of function log

End of class QMSLogger.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.18 ms | 1394 KiB | 13 Q