3v4l.org

run code in 300+ PHP versions simultaneously
<?php class obj { private $one; private $two; private $three; private $four; public function __construct() { $this->one = "1"; $this->two = "2"; $this->three = "3"; $this->four = "4"; } public function getData() { return $this->dataa; } } $obj = new obj; $ser = serialize($obj); var_dump($ser); $newobj = unserialize($ser); var_dump($newobj->getData()); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3O0EF
function name:  (null)
number of ops:  20
compiled vars:  !0 = $obj, !1 = $ser, !2 = $newobj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   NEW                                              $3      'obj'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   21     3        INIT_FCALL                                               'serialize'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !1, $6
   23     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
   25    10        INIT_FCALL                                               'unserialize'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !2, $9
   27    14        INIT_FCALL                                               'var_dump'
         15        INIT_METHOD_CALL                                         !2, 'getData'
         16        DO_FCALL                                      0  $11     
         17        SEND_VAR                                                 $11
         18        DO_ICALL                                                 
   29    19      > RETURN                                                   1

Class obj:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3O0EF
function name:  __construct
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN_OBJ                                               'one'
          1        OP_DATA                                                  '1'
   10     2        ASSIGN_OBJ                                               'two'
          3        OP_DATA                                                  '2'
   11     4        ASSIGN_OBJ                                               'three'
          5        OP_DATA                                                  '3'
   12     6        ASSIGN_OBJ                                               'four'
          7        OP_DATA                                                  '4'
   13     8      > RETURN                                                   null

End of function __construct

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

End of function getdata

End of class obj.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.09 ms | 1396 KiB | 19 Q