3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { private $prop; public $p; public function __construct($val) { $this->prop = $val; $this->p = 9; } public function __debugInfo() { return [ 'propSquared' => $this->prop, ]; } } var_dump(new C(42));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8s2JG
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'C'
          2        SEND_VAL_EX                                              42
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

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

End of function __construct

Function __debuginfo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8s2JG
function name:  __debugInfo
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   FETCH_OBJ_R                                      ~0      'prop'
          1        INIT_ARRAY                                       ~1      ~0, 'propSquared'
          2      > RETURN                                                   ~1
   15     3*     > RETURN                                                   null

End of function __debuginfo

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.79 ms | 1395 KiB | 15 Q