3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Token { public function replace($text) { return $text; } } class TokenPlus extends Token { public function repalce($string) { return $text; } } echo((new TokenPlus())->replace('hi mum'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GS5RY
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   NEW                                                  $0      'TokenPlus'
          1        DO_FCALL                                          0          
          2        INIT_METHOD_CALL                                             $0, 'replace'
          3        SEND_VAL_EX                                                  'hi+mum'
          4        DO_FCALL                                          0  $2      
          5        ECHO                                                         $2
          6      > RETURN                                                       1

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

End of function replace

End of class Token.

Class TokenPlus:
Function repalce:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GS5RY
function name:  repalce
number of ops:  3
compiled vars:  !0 = $string, !1 = $text
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   RECV                                                 !0      
   10     1      > RETURN                                                       !1
   11     2*     > RETURN                                                       null

End of function repalce

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

End of function replace

End of class TokenPlus.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.28 ms | 1849 KiB | 13 Q