3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { function display($value = null) { } } class TestChild extends Test { function display($value = null) { echo $value; } } $test = new TestChild(); $test->display(123);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k9RMR
function name:  (null)
number of ops:  7
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $1      'TestChild'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   18     3        INIT_METHOD_CALL                                         !0, 'display'
          4        SEND_VAL_EX                                              123
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function display

End of class Test.

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

End of function display

End of class TestChild.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.81 ms | 1398 KiB | 13 Q