3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Record implements Serializable { public $array = array(1, 2, 5, 6); public $object; public function __construct() { $this->object = new StdClass(); $this->object->property = 'wowo'; } public function serialize() { } public function unserialize() { } } $object = new Record(); var_dump(serialize($object));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H6ij3
function name:  (null)
number of ops:  11
compiled vars:  !0 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'record'
   26     1        NEW                                              $1      'Record'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   28     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'serialize'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Class Record:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H6ij3
function name:  __construct
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'StdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN_OBJ                                               'object'
          3        OP_DATA                                                  $1
   12     4        FETCH_OBJ_W                                      $3      'object'
          5        ASSIGN_OBJ                                               $3, 'property'
          6        OP_DATA                                                  'wowo'
   13     7      > RETURN                                                   null

End of function __construct

Function serialize:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H6ij3
function name:  serialize
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E > > RETURN                                                   null

End of function serialize

Function unserialize:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H6ij3
function name:  unserialize
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E > > RETURN                                                   null

End of function unserialize

End of class Record.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.86 ms | 1396 KiB | 17 Q