3v4l.org

run code in 300+ PHP versions simultaneously
<?php class EnumConstantMetadata { private $name; private $readableValue; private $value; public function __construct($name, $value, $readableValue) { $this->name = $name; $this->value = $value; $this->readableValue = $readableValue; } public function getName() { return $this->name; } public function getReadableValue() { return $this->readableValue; } public function getValue() { return $this->value; } } var_dump(serialize(new EnumConstantMetadata('name', 'value', 'readableValue'))); var_dump(serialize(array('name', 'value', 'readableValue')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i1dQj
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   34     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'serialize'
          2        NEW                                              $0      'EnumConstantMetadata'
          3        SEND_VAL_EX                                              'name'
          4        SEND_VAL_EX                                              'value'
          5        SEND_VAL_EX                                              'readableValue'
          6        DO_FCALL                                      0          
          7        SEND_VAR                                                 $0
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                                 
   35    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'serialize'
         13        SEND_VAL                                                 <array>
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Class EnumConstantMetadata:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i1dQj
function name:  __construct
number of ops:  10
compiled vars:  !0 = $name, !1 = $value, !2 = $readableValue
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   13     3        ASSIGN_OBJ                                               'name'
          4        OP_DATA                                                  !0
   14     5        ASSIGN_OBJ                                               'value'
          6        OP_DATA                                                  !1
   15     7        ASSIGN_OBJ                                               'readableValue'
          8        OP_DATA                                                  !2
   16     9      > RETURN                                                   null

End of function __construct

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

End of function getname

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

End of function getreadablevalue

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

End of function getvalue

End of class EnumConstantMetadata.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.93 ms | 1400 KiB | 17 Q