3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public function FN001($string) { return strrev($string); } public function FN002($name) { return ucwords($this->FN001($name)); } } $myc = new MyClass(); echo $myc->FN002('Nakka Chandra');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rfFoe
function name:  (null)
number of ops:  8
compiled vars:  !0 = $myc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'MyClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   18     3        INIT_METHOD_CALL                                         !0, 'FN002'
          4        SEND_VAL_EX                                              'Nakka+Chandra'
          5        DO_FCALL                                      0  $4      
          6        ECHO                                                     $4
          7      > RETURN                                                   1

Class MyClass:
Function fn001:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rfFoe
function name:  FN001
number of ops:  6
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'strrev'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4      > RETURN                                                   $1
    8     5*     > RETURN                                                   null

End of function fn001

Function fn002:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rfFoe
function name:  FN002
number of ops:  9
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   12     1        INIT_FCALL                                               'ucwords'
          2        INIT_METHOD_CALL                                         'FN001'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                         $2      
          7      > RETURN                                                   $2
   13     8*     > RETURN                                                   null

End of function fn002

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187.14 ms | 1401 KiB | 17 Q