3v4l.org

run code in 300+ PHP versions simultaneously
<?php class OBJ{ public function __construct($key){ $this->a = $key; } } $obj = new OBJ(23); var_dump($obj); $obj->b = 23123; var_dump($obj);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SldiW
function name:  (null)
number of ops:  13
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'OBJ'
          1        SEND_VAL_EX                                              23
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   11     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
   13     7        ASSIGN_OBJ                                               !0, 'b'
          8        OP_DATA                                                  23123
   15     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

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

End of function __construct

End of class OBJ.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.29 ms | 1386 KiB | 15 Q