3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface LoggerInterface { public function log($level, $message, array $context = []); } class Logger implements LoggerInterface { public function log($level, $message, array $context = []): void { } } new Logger();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yeb9A
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                                'logger'
   16     1        NEW                                                  $0      'Logger'
          2        DO_FCALL                                          0          
          3        FREE                                                         $0
          4      > RETURN                                                       1

Class LoggerInterface:
Function log:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yeb9A
function name:  log
number of ops:  4
compiled vars:  !0 = $level, !1 = $message, !2 = $context
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV_INIT                                            !2      <array>
          3      > RETURN                                                       null

End of function log

End of class LoggerInterface.

Class Logger:
Function log:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yeb9A
function name:  log
number of ops:  4
compiled vars:  !0 = $level, !1 = $message, !2 = $context
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV_INIT                                            !2      <array>
   13     3      > RETURN                                                       null

End of function log

End of class Logger.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
176.78 ms | 2064 KiB | 12 Q