3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class WorkUnitDataType { //============================================== // consts / vars //============================================== const NoneDataType = 0; const BoolDataType = 1; const StringDataType = 2; const ArrayDataType = 3; const JsonDataType = 4; const UrlDataType = 5; const FileDataType = 6; private $value; private $name; //============================================== // construct //============================================== protected function __construct() { $this->setByName(get_class($this)); } protected function setByValue($value) { if (is_int($value)) { $this->value = $value; $this->name = WorkUnitDataType::getNameFromConst($value); } } protected function setByName($name) { if (is_string($name)) { $this->value = $this->name = $name; } } //============================================== // accessing //============================================== public function toString() { return $this->name; } public function toValue() { return $this->value; } //============================================== // convenience //============================================== public static function None() { return new NoneDataType();} public static function Bool() { return new BoolDataType();} public static function String() { return new StringDataType();} public static function Array() { return new ArrayDataType();} public static function Json() { return new JsonDataType();} public static function Url() { return new UrlDataType();} public static function File() { return new FileDataType();} //============================================== // utility //============================================== public static function getNameFromConst($const) { $class = new ReflectionClass('WorkUnitDataType'); $constants = $class->getConstants(); foreach ($constants as $name => $value) { if ($value == $const) { return $name; } } return Null; } public static function getValueFromName($text) { $class = new ReflectionClass('WorkUnitDataType'); $constants = $class->getConstants(); foreach ($constants as $name => $value) { if ($name == $text) { return $value; } } return -1; } } class NoneDataType extends WorkUnitDataType {} class BoolDataType extends WorkUnitDataType {} class StringDataType extends WorkUnitDataType {} class ArrayDataType extends WorkUnitDataType {} class JsonDataType extends WorkUnitDataType {} class UrlDataType extends WorkUnitDataType {} class FileDataType extends WorkUnitDataType {} $a = WorkUnitDataType::None(); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cc20d
function name:  (null)
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  114     0  E >   INIT_STATIC_METHOD_CALL                                  'WorkUnitDataType', 'None'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
  115     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Class WorkUnitDataType:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cc20d
function name:  __construct
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   INIT_METHOD_CALL                                         'setByName'
          1        FETCH_THIS                                       ~0      
          2        GET_CLASS                                        ~1      ~0
          3        SEND_VAL_EX                                              ~1
          4        DO_FCALL                                      0          
   26     5      > RETURN                                                   null

End of function __construct

Function setbyvalue:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/Cc20d
function name:  setByValue
number of ops:  11
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   RECV                                             !0      
   29     1        TYPE_CHECK                                   16          !0
          2      > JMPZ                                                     ~1, ->10
   30     3    >   ASSIGN_OBJ                                               'value'
          4        OP_DATA                                                  !0
   31     5        INIT_STATIC_METHOD_CALL                                  'WorkUnitDataType', 'getNameFromConst'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0  $4      
          8        ASSIGN_OBJ                                               'name'
          9        OP_DATA                                                  $4
   33    10    > > RETURN                                                   null

End of function setbyvalue

Function setbyname:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/Cc20d
function name:  setByName
number of ops:  8
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   35     0  E >   RECV                                             !0      
   36     1        TYPE_CHECK                                   64          !0
          2      > JMPZ                                                     ~1, ->7
   38     3    >   ASSIGN_OBJ                                       ~3      'name'
          4        OP_DATA                                                  !0
   37     5        ASSIGN_OBJ                                               'value'
   38     6        OP_DATA                                                  ~3
   40     7    > > RETURN                                                   null

End of function setbyname

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

End of function tostring

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

End of function tovalue

Function none:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cc20d
function name:  None
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   60     0  E >   NEW                                              $0      'NoneDataType'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
          3*     > RETURN                                                   null

End of function none

Function bool:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cc20d
function name:  Bool
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   61     0  E >   NEW                                              $0      'BoolDataType'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
          3*     > RETURN                                                   null

End of function bool

Function string:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cc20d
function name:  String
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   62     0  E >   NEW                                              $0      'StringDataType'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
          3*     > RETURN                                                   null

End of function string

Function array:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cc20d
function name:  Array
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   63     0  E >   NEW                                              $0      'ArrayDataType'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
          3*     > RETURN                                                   null

End of function array

Function json:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cc20d
function name:  Json
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   64     0  E >   NEW                                              $0      'JsonDataType'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
          3*     > RETURN                                                   null

End of function json

Function url:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cc20d
function name:  Url
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   65     0  E >   NEW                                              $0      'UrlDataType'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
          3*     > RETURN                                                   null

End of function url

Function file:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cc20d
function name:  File
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   66     0  E >   NEW                                              $0      'FileDataType'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
          3*     > RETURN                                                   null

End of function file

Function getnamefromconst:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/Cc20d
function name:  getNameFromConst
number of ops:  19
compiled vars:  !0 = $const, !1 = $class, !2 = $constants, !3 = $value, !4 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   73     0  E >   RECV                                             !0      
   74     1        NEW                                              $5      'ReflectionClass'
          2        SEND_VAL_EX                                              'WorkUnitDataType'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $5
   75     5        INIT_METHOD_CALL                                         !1, 'getConstants'
          6        DO_FCALL                                      0  $8      
          7        ASSIGN                                                   !2, $8
   77     8      > FE_RESET_R                                       $10     !2, ->16
          9    > > FE_FETCH_R                                       ~11     $10, !3, ->16
         10    >   ASSIGN                                                   !4, ~11
   78    11        IS_EQUAL                                                 !3, !0
         12      > JMPZ                                                     ~13, ->15
   79    13    >   FE_FREE                                                  $10
         14      > RETURN                                                   !4
   77    15    > > JMP                                                      ->9
         16    >   FE_FREE                                                  $10
   83    17      > RETURN                                                   null
   84    18*     > RETURN                                                   null

End of function getnamefromconst

Function getvaluefromname:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/Cc20d
function name:  getValueFromName
number of ops:  19
compiled vars:  !0 = $text, !1 = $class, !2 = $constants, !3 = $value, !4 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   86     0  E >   RECV                                             !0      
   87     1        NEW                                              $5      'ReflectionClass'
          2        SEND_VAL_EX                                              'WorkUnitDataType'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $5
   88     5        INIT_METHOD_CALL                                         !1, 'getConstants'
          6        DO_FCALL                                      0  $8      
          7        ASSIGN                                                   !2, $8
   90     8      > FE_RESET_R                                       $10     !2, ->16
          9    > > FE_FETCH_R                                       ~11     $10, !3, ->16
         10    >   ASSIGN                                                   !4, ~11
   91    11        IS_EQUAL                                                 !4, !0
         12      > JMPZ                                                     ~13, ->15
   92    13    >   FE_FREE                                                  $10
         14      > RETURN                                                   !3
   90    15    > > JMP                                                      ->9
         16    >   FE_FREE                                                  $10
   96    17      > RETURN                                                   -1
   97    18*     > RETURN                                                   null

End of function getvaluefromname

End of class WorkUnitDataType.

Class NoneDataType:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cc20d
function name:  __construct
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   INIT_METHOD_CALL                                         'setByName'
          1        FETCH_THIS                                       ~0      
          2        GET_CLASS                                        ~1      ~0
          3        SEND_VAL_EX                                              ~1
          4        DO_FCALL                                      0          
   26     5      > RETURN                                                   null

End of function __construct

Function setbyvalue:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/Cc20d
function name:  setByValue
number of ops:  11
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   RECV                                             !0      
   29     1        TYPE_CHECK                                   16          !0
          2      > JMPZ                                                     ~1, ->10
   30     3    >   ASSIGN_OBJ                                               'value'
          4        OP_DATA                                                  !0
   31     5        INIT_STATIC_METHOD_CALL                                  'WorkUnitDataType', 'getNameFromConst'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0  $4      
          8        ASSIGN_OBJ                                               'name'
          9        OP_DATA                                                  $4
   33    10    > > RETURN                                                   null

End of function setbyvalue

Function setbyname:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/Cc20d
function name:  setByName
number of ops:  8
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   35     0  E >   RECV                                             !0      
   36     1        TYPE_CHECK                                   64          !0
          2      > JMPZ                                                     ~1, ->7
   38     3    >   ASSIGN_OBJ                                       ~3      'name'
          4        OP_DATA                                                  !0
   37     5        ASSIGN_OBJ                                               'value'
   38     6        OP_DATA                                                  ~3
   40     7    > > RETURN                                                   null

End of function setbyname

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

End of function tostring

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

End of function tovalue

Function none:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cc20d
function name:  None
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   60     0  E >   NEW                                              $0      'NoneDataType'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
          3*     > RETURN                                                   null

End of function none

Function bool:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cc20d
function name:  Bool
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   61     0  E >   NEW                                              $0      'BoolDataType'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
          3*     > RETURN                                                   null

End of function bool

Function string:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cc20d
function name:  String
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   62     0  E >   NEW                                              $0      'StringDataType'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
          3*     > RETURN                                                   null

End of function string

Function array:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cc20d
function name:  Array
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   63     0  E >   NEW                                              $0      'ArrayDataType'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
          3*     > RETURN                                                   null

End of function array

Function json:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cc20d
function name:  Json
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   64     0  E >   NEW                                              $0      'JsonDataType'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
          3*     > RETURN                                                   null

End of function json

Function url:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cc20d
function name:  Url
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   65     0  E >   NEW                                              $0      'UrlDataType'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
          3*     > RETURN                                                   null

End of function url

Function file:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cc20d
function name:  File
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   66     0  E >   NEW                                              $0      'FileDataType'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
          3*     > RETURN                                                   null

End of function file

Function getnamefromconst:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/Cc20d
function name:  getNameFromConst
number of ops:  19
compiled vars:  !0 = $const, !1 = $class, !2 = $constants, !3 = $value, !4 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   73     0  E >   RECV                                             !0      
   74     1        NEW                                              $5      'ReflectionClass'
          2        SEND_VAL_EX                                              'WorkUnitDataType'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $5
   75     5        INIT_METHOD_CALL                                         !1, 'getConstants'
          6        DO_FCALL                                      0  $8      
          7        ASSIGN                                                   !2, $8
   77     8      > FE_RESET_R                                       $10     !2, ->16
          9    > > FE_FETCH_R                                       ~11     $10, !3, ->16
         10    >   ASSIGN                                                   !4, ~11
   78    11        IS_EQUAL                                                 !3, !0
         12      > JMPZ                                                     ~13, ->15
   79    13    >   FE_FREE                                                  $10
         14      > RETURN                                                   !4
   77    15    > > JMP                                                      ->9
         16    >   FE_FREE                                                  $10
   83    17      > RETURN                                                   null
   84    18*     > RETURN                                                   null

End of function getnamefromconst

Function getvaluefromname:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/Cc20d
function name:  getValueFromName
number of ops:  19
compiled vars:  !0 = $text, !1 = $class, !2 = $constants, !3 = $value, !4 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   86     0  E >   RECV                                             !0      
   87     1        NEW                                              $5      'ReflectionClass'
          2        SEND_VAL_EX                                              'WorkUnitDataType'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $5
   88     5        INIT_METHOD_CALL                                         !1, 'getConstants'
          6        DO_FCALL                                      0  $8      
          7        ASSIGN                                                   !2, $8
   90     8      > FE_RESET_R                                       $10     !2, ->16
          9    > > FE_FETCH_R                                       ~11     $10, !3, ->16
         10    >   ASSIGN                                                   !4, ~11
   91    11        IS_EQUAL                                                 !4, !0
         12      > JMPZ                                                     ~13, ->15
   92    13    >   FE_FREE                                                  $10
         14      > RETURN                                                   !3
   90    15    > > JMP                                                      ->9
         16    >   FE_FREE                                                  $10
   96    17      > RETURN                                                   -1
   97    18*     > RETURN                                                   null

End of function getvaluefromname

End of class NoneDataType.

Class BoolDataType:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cc20d
function name:  __construct
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   INIT_METHOD_CALL                                         'setByName'
          1        FETCH_THIS                                       ~0      
          2        GET_CLASS                                        ~1      ~0
          3        SEND_VAL_EX                                              ~1
          4        DO_FCALL                                      0          
   26     5      > RETURN                                                   null

End of function __construct

Function setbyvalue:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/Cc20d
function name:  setByValue
number of ops:  11
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   RECV                                             !0      
   29     1        TYPE_CHECK                                   16          !0
          2      > JMPZ                                                     ~1, ->10
   30     3    >   ASSIGN_OBJ                                               'value'
          4   

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
360.46 ms | 1420 KiB | 17 Q