3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types = 1); class foo { function say( $message = null ) { echo $message; } } class bar extends foo { function say( $message = '' ) { echo $message; } } $hello = new bar(); $hello->say( 'Hello' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8g5df
function name:  (null)
number of ops:  7
compiled vars:  !0 = $hello
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E >   NEW                                                  $1      'bar'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   16     3        INIT_METHOD_CALL                                             !0, 'say'
          4        SEND_VAL_EX                                                  'Hello'
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

Class foo:
Function say:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8g5df
function name:  say
number of ops:  3
compiled vars:  !0 = $message
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   RECV_INIT                                            !0      null
    5     1        ECHO                                                         !0
    6     2      > RETURN                                                       null

End of function say

End of class foo.

Class bar:
Function say:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8g5df
function name:  say
number of ops:  3
compiled vars:  !0 = $message
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   RECV_INIT                                            !0      ''
   11     1        ECHO                                                         !0
   12     2      > RETURN                                                       null

End of function say

End of class bar.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.81 ms | 2054 KiB | 13 Q