3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class DemoFile { public function run(array $data) { } public function execute() { return $this->run($this->some(...)); } public function some() {} } $d = new DemoFile(); $d->execute();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9sEbL
function name:  (null)
number of ops:  6
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'DemoFile'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        INIT_METHOD_CALL                                         !0, 'execute'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class DemoFile:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9sEbL
function name:  run
number of ops:  2
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1      > RETURN                                                   null

End of function run

Function execute:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9sEbL
function name:  execute
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_METHOD_CALL                                         'run'
          1        INIT_METHOD_CALL                                         'some'
          2        ZEND_CALLABLE_CONVERT                            ~0      
          3        SEND_VAL_EX                                              ~0
          4        DO_FCALL                                      0  $1      
          5      > RETURN                                                   $1
   12     6*     > RETURN                                                   null

End of function execute

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

End of function some

End of class DemoFile.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.04 ms | 1010 KiB | 13 Q