3v4l.org

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

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

End of function __construct

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

End of function method

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.57 ms | 1398 KiB | 13 Q