3v4l.org

run code in 300+ PHP versions simultaneously
<?php class fetcher { public function __construct() { } public static function fetch() { echo 'abc'; } } class runner { private static $fetcher; public function __construct() { static::$fetcher = new fetcher(); } public static function run() { static::$fetcher->fetch(); } } $runner = new runner(); $runner->run();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pql8n
function name:  (null)
number of ops:  6
compiled vars:  !0 = $runner
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   NEW                                              $1      'runner'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   26     3        INIT_METHOD_CALL                                         !0, 'run'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class fetcher:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pql8n
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   null

End of function __construct

Function fetch:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pql8n
function name:  fetch
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'abc'
   10     1      > RETURN                                                   null

End of function fetch

End of class fetcher.

Class runner:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pql8n
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $1      'fetcher'
          1        DO_FCALL                                      0          
          2        ASSIGN_STATIC_PROP                                       'fetcher'
          3        OP_DATA                                                  $1
   18     4      > RETURN                                                   null

End of function __construct

Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pql8n
function name:  run
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'fetcher'
          1        INIT_METHOD_CALL                                         ~0, 'fetch'
          2        DO_FCALL                                      0          
   22     3      > RETURN                                                   null

End of function run

End of class runner.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.08 ms | 1399 KiB | 13 Q