3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class WorkUnitDataType { //============================================== // consts / vars //============================================== const NoneDataType = 0; const BoolDataType = 1; const NumericDataType = 2; const StringDataType = 3; const ArrayDataType = 4; const JsonDataType = 5; const UrlDataType = 6; const FileDataType = 7; private $value; private $name; private $cachedConstantArr; //============================================== // construct //============================================== protected function __construct() { $this->setByName(get_class($this)); $this->cacheConstArray(); } //============================================== // accessing //============================================== public function getName() { return $this->name; } public function getValue() { return $this->value; } private function cacheConstArray() { $class = new ReflectionClass('WorkUnitDataType'); $this->cachedConstantArr = $class->getConstants(); } //============================================== // convenience //============================================== public static function NoneDataType() { return new NoneDataType();} public static function BoolDataType() { return new BoolDataType();} public static function NumericDataType(){ return new NumericDataType();} public static function StringDataType() { return new StringDataType();} public static function ArrayDataType() { return new ArrayDataType();} public static function JsonDataType() { return new JsonDataType();} public static function UrlDataType() { return new UrlDataType();} public static function FileDataType() { return new FileDataType();} //============================================== // utility //============================================== protected function setByValue($value) { if (is_int($value)) { $this->value = $value; $this->name = WorkUnitDataType::getNameFromValue($value); } } protected function setByName($name) { if (is_string($name)) { $this->value = WorkUnitDataType::getValueFromName($name); $this->name = $name; } } public static function getNameFromValue($const) { foreach (self::$cachedConstantArr as $name => $value) { if ($value == $const) { return $name; } } return Null; } public static function getValueFromName($text) { foreach (self::$cachedConstantArr as $name => $value) { if ($name == $text) { return $value; } } return -1; } } class NoneDataType extends WorkUnitDataType {} class BoolDataType extends WorkUnitDataType {} class NumericDataType extends WorkUnitDataType {} class StringDataType extends WorkUnitDataType {} class ArrayDataType extends WorkUnitDataType {} class JsonDataType extends WorkUnitDataType {} class UrlDataType extends WorkUnitDataType {} class FileDataType extends WorkUnitDataType {} $a = WorkUnitDataType::NoneDataType(); var_dump($a); echo "\n\n"; echo $a->toString() . "\n"; echo $a->toValue() . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UQDKX
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  120     0  E >   INIT_STATIC_METHOD_CALL                                  'WorkUnitDataType', 'NoneDataType'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
  121     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
  122     6        ECHO                                                     '%0A%0A'
  123     7        INIT_METHOD_CALL                                         !0, 'toString'
          8        DO_FCALL                                      0  $4      
          9        CONCAT                                           ~5      $4, '%0A'
         10        ECHO                                                     ~5
  124    11        INIT_METHOD_CALL                                         !0, 'toValue'
         12        DO_FCALL                                      0  $6      
         13        CONCAT                                           ~7      $6, '%0A'
         14        ECHO                                                     ~7
         15      > RETURN                                                   1

Class WorkUnitDataType:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UQDKX
function name:  __construct
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   INIT_METHOD_CALL                                         'setByName'
          1        FETCH_THIS                                       ~0      
          2        GET_CLASS                                        ~1      ~0
          3        SEND_VAL_EX                                              ~1
          4        DO_FCALL                                      0          
   29     5        INIT_METHOD_CALL                                         'cacheConstArray'
          6        DO_FCALL                                      0          
   30     7      > 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/UQDKX
function name:  getName
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   38     0  E >   FETCH_OBJ_R                                      ~0      'name'
          1      > RETURN                                                   ~0
   39     2*     > RETURN                                                   null

End of function getname

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

End of function getvalue

Function cacheconstarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UQDKX
function name:  cacheConstArray
number of ops:  9
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   46     0  E >   NEW                                              $1      'ReflectionClass'
          1        SEND_VAL_EX                                              'WorkUnitDataType'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   47     4        INIT_METHOD_CALL                                         !0, 'getConstants'
          5        DO_FCALL                                      0  $5      
          6        ASSIGN_OBJ                                               'cachedConstantArr'
          7        OP_DATA                                                  $5
   48     8      > RETURN                                                   null

End of function cacheconstarray

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

End of function nonedatatype

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

End of function booldatatype

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

End of function numericdatatype

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

End of function stringdatatype

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

End of function arraydatatype

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

End of function jsondatatype

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

End of function urldatatype

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

End of function filedatatype

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/UQDKX
function name:  setByValue
number of ops:  11
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   69     0  E >   RECV                                             !0      
   70     1        TYPE_CHECK                                   16          !0
          2      > JMPZ                                                     ~1, ->10
   71     3    >   ASSIGN_OBJ                                               'value'
          4        OP_DATA                                                  !0
   72     5        INIT_STATIC_METHOD_CALL                                  'WorkUnitDataType', 'getNameFromValue'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0  $4      
          8        ASSIGN_OBJ                                               'name'
          9        OP_DATA                                                  $4
   74    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 = 10
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/UQDKX
function name:  setByName
number of ops:  11
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   76     0  E >   RECV                                             !0      
   77     1        TYPE_CHECK                                   64          !0
          2      > JMPZ                                                     ~1, ->10
   78     3    >   INIT_STATIC_METHOD_CALL                                  'WorkUnitDataType', 'getValueFromName'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $3      
          6        ASSIGN_OBJ                                               'value'
          7        OP_DATA                                                  $3
   79     8        ASSIGN_OBJ                                               'name'
          9        OP_DATA                                                  !0
   81    10    > > RETURN                                                   null

End of function setbyname

Function getnamefromvalue:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/UQDKX
function name:  getNameFromValue
number of ops:  13
compiled vars:  !0 = $const, !1 = $value, !2 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   83     0  E >   RECV                                             !0      
   84     1        FETCH_STATIC_PROP_R          unknown             ~3      'cachedConstantArr'
          2      > FE_RESET_R                                       $4      ~3, ->10
          3    > > FE_FETCH_R                                       ~5      $4, !1, ->10
          4    >   ASSIGN                                                   !2, ~5
   85     5        IS_EQUAL                                                 !1, !0
          6      > JMPZ                                                     ~7, ->9
   86     7    >   FE_FREE                                                  $4
          8      > RETURN                                                   !2
   84     9    > > JMP                                                      ->3
         10    >   FE_FREE                                                  $4
   90    11      > RETURN                                                   null
   91    12*     > RETURN                                                   null

End of function getnamefromvalue

Function getvaluefromname:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/UQDKX
function name:  getValueFromName
number of ops:  13
compiled vars:  !0 = $text, !1 = $value, !2 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   93     0  E >   RECV                                             !0      
   94     1        FETCH_STATIC_PROP_R          unknown             ~3      'cachedConstantArr'
          2      > FE_RESET_R                                       $4      ~3, ->10
          3    > > FE_FETCH_R                                       ~5      $4, !1, ->10
          4    >   ASSIGN                                                   !2, ~5
   95     5        IS_EQUAL                                                 !2, !0
          6      > JMPZ                                                     ~7, ->9
   96     7    >   FE_FREE                                                  $4
          8      > RETURN                                                   !1
   94     9    > > JMP                                                      ->3
         10    >   FE_FREE                                                  $4
  100    11      > RETURN                                                   -1
  101    12*     > 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/UQDKX
function name:  __construct
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   INIT_METHOD_CALL                                         'setByName'
          1        FETCH_THIS                                       ~0      
          2        GET_CLASS                                        ~1      ~0
          3        SEND_VAL_EX                                              ~1
          4        DO_FCALL                                      0          
   29     5        INIT_METHOD_CALL                                         'cacheConstArray'
          6        DO_FCALL                                      0          
   30     7      > 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/UQDKX
function name:  getName
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   38     0  E >   FETCH_OBJ_R                                      ~0      'name'
          1      > RETURN                                                   ~0
   39     2*     > RETURN                                                   null

End of function getname

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

End of function getvalue

Function cacheconstarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UQDKX
function name:  cacheConstArray
number of ops:  9
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   46     0  E >   NEW                                              $1      'ReflectionClass'
          1        SEND_VAL_EX                                              'WorkUnitDataType'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   47     4        INIT_METHOD_CALL                                         !0, 'getConstants'
          5        DO_FCALL                                      0  $5      
          6        ASSIGN_OBJ                                               'cachedConstantArr'
          7        OP_DATA                                                  $5
   48     8      > RETURN                                                   null

End of function cacheconstarray

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

End of function nonedatatype

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

End of function booldatatype

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

End of function numericdatatype

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

End of function stringdatatype

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

End of function arraydatatype

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

End of function jsondatatype

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

End of function urldatatype

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

End of function filedatatype

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/UQDKX
function name:  setByValue
number of ops:  11
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   69     0  E >   RECV                                             !0      
   70     1        TYPE_CHECK                                   16          !0
          2      > JMPZ                                                     ~1, ->10
   71     3    >   ASSIGN_OBJ                                               'value'
          4        OP_DATA                                                  !0
   72     5        INIT_STATIC_METHOD_CALL                                  'WorkUnitDataType', 'getNameFromValue'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0  $4      
          8        ASSIGN_OBJ                                               'name'
          9        OP_DATA                                                  $4
   74    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 = 10
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/UQDKX
function name:  setByName
number of ops:  11
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   76     0  E >   RECV                                             !0      
   77     1        TYPE_CHECK                                   64          !0
          2      > JMPZ                                                     ~1, ->10
   78     3    >   INIT_STATIC_METHOD_CALL                                  'WorkUnitDataType', 'getValueFromName'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $3      
          6        ASSIGN_OBJ                                               'value'
          7        OP_DATA                                                  $3
   79     8        ASSIGN_OBJ                                               'name'
          9        OP_DATA                                                  !0
   81    10    > > RETURN                                                   null

End of function setbyname

Function getnamefromvalue:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/UQDKX
function name:  getNameFromValue
number of ops:  13
compiled vars:  !0 = $const, !1 = $value, !2 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   83     0  E >   RECV                                             !0      
   84     1        FETCH_STATIC_PROP_R          unknown             ~3      'cachedConstantArr'
          2      > FE_RESET_R                                       $4      ~3, ->10
          3    > > FE_FETCH_R                                       ~5      $4, !1, ->10
          4    >   ASSIGN                                                   !2, ~5
   85     5        IS_EQUAL                                                 !1, !0
          6      > JMPZ                                                     ~7, ->9
   86     7    >   FE_FREE                                                  $4
          8      > RETURN                                                   !2
   84     9    > > JMP                                                      ->3
         10    >   FE_FREE                                                  $4
   90    11      > RETURN                                                   null
   91    12*     > RETURN                                                   null

End of function getnamefromvalue

Function getvaluefromname:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Pos

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
480.52 ms | 1428 KiB | 18 Q