3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Hello { private static $name = null; public static function World($name) { self::Reverse($name); return "Hello " . self::$name; } private static function Reverse($name) { self::$name = strrev($name); } } echo Hello::World('Chandra');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vHe3n
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     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/vHe3n
function name:  World
number of ops:  8
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        INIT_STATIC_METHOD_CALL                                  'Reverse'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
   11     4        FETCH_STATIC_PROP_R          unknown             ~2      'name'
          5        CONCAT                                           ~3      'Hello+', ~2
          6      > RETURN                                                   ~3
   12     7*     > 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/vHe3n
function name:  Reverse
number of ops:  7
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
   16     1        INIT_FCALL                                               'strrev'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN_STATIC_PROP                                       'name'
          5        OP_DATA                                                  $2
   17     6      > RETURN                                                   null

End of function reverse

End of class Hello.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.13 ms | 1395 KiB | 15 Q