3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public static function FN001($string) { return strrev($string); } public static function FN002($name) { return ucwords(self::FN001($name)); } } echo MyClass::FN002('Hello World');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EgW3c
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_STATIC_METHOD_CALL                                  'MyClass', 'FN002'
          1        SEND_VAL                                                 'Hello+World'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Class MyClass:
Function fn001:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EgW3c
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/EgW3c
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_STATIC_METHOD_CALL                                  'FN001'
          3        SEND_VAR                                                 !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:
158.33 ms | 1395 KiB | 17 Q