3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NPt2R
function name:  (null)
number of ops:  32
compiled vars:  !0 = $testPropertyObj, !1 = $sessionObject, !2 = $sessionString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'serializableclass'
   30     1        NEW                                              $3      'stdClass'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
   31     4        ASSIGN_OBJ                                               !0, 'name'
          5        OP_DATA                                                  'test'
   35     6        NEW                                              $7      'SerializableClass'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0          
          9        INIT_ARRAY                                       ~9      $7, 'obj1'
   36    10        NEW                                              $10     'SerializableClass'
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0          
         13        ADD_ARRAY_ELEMENT                                ~9      $10, 'obj2'
   34    14        ASSIGN                                                   !1, ~9
   38    15        INIT_FCALL                                               'session_start'
         16        DO_ICALL                                                 
   39    17        FETCH_W                      global              $14     '_SESSION'
         18        ASSIGN                                                   $14, !1
   41    19        INIT_FCALL                                               'session_encode'
         20        DO_ICALL                                         $16     
         21        ASSIGN                                                   !2, $16
   42    22        INIT_FCALL                                               'session_decode'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                                 
   43    25        ECHO                                                     !2
   44    26        ECHO                                                     '%0A%0A'
   45    27        INIT_FCALL                                               'var_dump'
         28        FETCH_R                      global              ~19     '_SESSION'
         29        SEND_VAL                                                 ~19
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

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

End of function __construct

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

End of function __set

Function serialize:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NPt2R
function name:  serialize
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'serialize'
          1        INIT_FCALL                                               'get_object_vars'
          2        FETCH_THIS                                       ~0      
          3        SEND_VAL                                                 ~0
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                         $2      
          7      > RETURN                                                   $2
   16     8*     > RETURN                                                   null

End of function serialize

Function unserialize:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
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
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/NPt2R
function name:  unserialize
number of ops:  18
compiled vars:  !0 = $data, !1 = $ar, !2 = $v, !3 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
   19     1        INIT_FCALL                                               'unserialize'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   20     5        TYPE_CHECK                                    4          !1
          6      > JMPZ                                                     ~6, ->8
   21     7    > > RETURN                                                   null
   23     8    > > FE_RESET_R                                       $7      !1, ->16
          9    > > FE_FETCH_R                                       ~8      $7, !2, ->16
         10    >   ASSIGN                                                   !3, ~8
   24    11        INIT_METHOD_CALL                                         '__set'
         12        SEND_VAR_EX                                              !3
         13        SEND_VAR_EX                                              !2
         14        DO_FCALL                                      0          
   23    15      > JMP                                                      ->9
         16    >   FE_FREE                                                  $7
   26    17      > RETURN                                                   null

End of function unserialize

End of class SerializableClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.16 ms | 982 KiB | 20 Q