3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Hello { public static function World($name) { return "Hello " . self::Reverse($name); } private static function Reverse($name) { return strrev($name); } } echo Hello::World('Chandra');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8nbCD
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                                  'Hello', 'World'
          1        SEND_VAL                                                 'Chandra'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Class Hello:
Function world:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8nbCD
function name:  World
number of ops:  7
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        INIT_STATIC_METHOD_CALL                                  'Reverse'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $1      
          4        CONCAT                                           ~2      'Hello+', $1
          5      > RETURN                                                   ~2
    8     6*     > RETURN                                                   null

End of function world

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

End of function reverse

End of class Hello.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.63 ms | 1400 KiB | 15 Q