3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Hoge { private $v; public function __construct($val) { $this->v = $val; } public function hoge() { self::fuga(); } public function fuga() { var_dump($this->v); } } $h = new Hoge('VALUUUUUUE'); $h->hoge();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ovhan
function name:  (null)
number of ops:  7
compiled vars:  !0 = $h
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   NEW                                              $1      'Hoge'
          1        SEND_VAL_EX                                              'VALUUUUUUE'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   24     4        INIT_METHOD_CALL                                         !0, 'hoge'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class Hoge:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ovhan
function name:  __construct
number of ops:  4
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        ASSIGN_OBJ                                               'v'
          2        OP_DATA                                                  !0
   10     3      > RETURN                                                   null

End of function __construct

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

End of function hoge

Function fuga:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ovhan
function name:  fuga
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_OBJ_R                                      ~0      'v'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   20     4      > RETURN                                                   null

End of function fuga

End of class Hoge.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.11 ms | 1396 KiB | 15 Q