3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace App\W\A\F\D\E\Q; class obj999 implements Serializable { private $data; public function __construct() { $this->data[] = "My private data1"; } public function serialize() { return serialize($this->data); } public function unserialize($data) { $this->data = unserialize($data); } public function getData() { return $this->data; } } $obj = new obj999; $ser = serialize($obj); print_r($ser); echo PHP_EOL; print_r(serialize(["My private data1"]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u3JJT
function name:  (null)
number of ops:  20
compiled vars:  !0 = $obj, !1 = $ser
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CLASS                                            'app%5Cw%5Ca%5Cf%5Cd%5Ce%5Cq%5Cobj999'
   21     1        NEW                                              $2      'App%5CW%5CA%5CF%5CD%5CE%5CQ%5Cobj999'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   22     4        INIT_NS_FCALL_BY_NAME                                    'App%5CW%5CA%5CF%5CD%5CE%5CQ%5Cserialize'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                                   !1, $5
   24     8        INIT_NS_FCALL_BY_NAME                                    'App%5CW%5CA%5CF%5CD%5CE%5CQ%5Cprint_r'
          9        SEND_VAR_EX                                              !1
         10        DO_FCALL                                      0          
   25    11        FETCH_CONSTANT                                   ~8      'App%5CW%5CA%5CF%5CD%5CE%5CQ%5CPHP_EOL'
         12        ECHO                                                     ~8
   26    13        INIT_NS_FCALL_BY_NAME                                    'App%5CW%5CA%5CF%5CD%5CE%5CQ%5Cprint_r'
         14        INIT_NS_FCALL_BY_NAME                                    'App%5CW%5CA%5CF%5CD%5CE%5CQ%5Cserialize'
         15        SEND_VAL_EX                                              <array>
         16        DO_FCALL                                      0  $9      
         17        SEND_VAR_NO_REF_EX                                       $9
         18        DO_FCALL                                      0          
         19      > RETURN                                                   1

Class App\W\A\F\D\E\Q\obj999:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u3JJT
function name:  __construct
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   FETCH_OBJ_W                                      $0      'data'
          1        ASSIGN_DIM                                               $0
          2        OP_DATA                                                  'My+private+data1'
    9     3      > 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/u3JJT
function name:  serialize
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_NS_FCALL_BY_NAME                                    'App%5CW%5CA%5CF%5CD%5CE%5CQ%5Cserialize'
          1        CHECK_FUNC_ARG                                           
          2        FETCH_OBJ_FUNC_ARG                               $0      'data'
          3        SEND_FUNC_ARG                                            $0
          4        DO_FCALL                                      0  $1      
          5      > RETURN                                                   $1
   12     6*     > 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/u3JJT
function name:  unserialize
number of ops:  7
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   14     1        INIT_NS_FCALL_BY_NAME                                    'App%5CW%5CA%5CF%5CD%5CE%5CQ%5Cunserialize'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $2      
          4        ASSIGN_OBJ                                               'data'
          5        OP_DATA                                                  $2
   15     6      > RETURN                                                   null

End of function unserialize

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

End of function getdata

End of class App\W\A\F\D\E\Q\obj999.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.72 ms | 1400 KiB | 19 Q