3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new ArrayObject;var_dump($obj);var_dump(serialize($obj));class MyArrayObject extends ArrayObject{public function __construct(){} public function serialize(){return "";} public function unserialize($data){echo 123;exit;}};$myObj = new MyArrayObject;var_dump($myObj);var_dump(serialize($myObj));$myUnserObj = unserialize("O:13:\"MyArrayObject\":0:{}");var_dump($myUnserObj);$myUnserObj->append(123);var_dump($myUnserObj);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rT5pJ
function name:  (null)
number of ops:  38
compiled vars:  !0 = $obj, !1 = $myObj, !2 = $myUnserObj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'ArrayObject'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
          3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
          6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'serialize'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $7      
         10        SEND_VAR                                                 $7
         11        DO_ICALL                                                 
         12        NEW                                              $9      'MyArrayObject'
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !1, $9
         15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'serialize'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $13     
         22        SEND_VAR                                                 $13
         23        DO_ICALL                                                 
         24        INIT_FCALL                                               'unserialize'
         25        SEND_VAL                                                 'O%3A13%3A%22MyArrayObject%22%3A0%3A%7B%7D'
         26        DO_ICALL                                         $15     
         27        ASSIGN                                                   !2, $15
         28        INIT_FCALL                                               'var_dump'
         29        SEND_VAR                                                 !2
         30        DO_ICALL                                                 
         31        INIT_METHOD_CALL                                         !2, 'append'
         32        SEND_VAL_EX                                              123
         33        DO_FCALL                                      0          
         34        INIT_FCALL                                               'var_dump'
         35        SEND_VAR                                                 !2
         36        DO_ICALL                                                 
         37      > RETURN                                                   1

Class MyArrayObject:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rT5pJ
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E > > 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/rT5pJ
function name:  serialize
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E > > RETURN                                                   ''
          1*     > RETURN                                                   null

End of function serialize

Function unserialize:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/rT5pJ
function name:  unserialize
number of ops:  4
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        ECHO                                                     123
          2      > EXIT                                                     
          3*     > RETURN                                                   null

End of function unserialize

End of class MyArrayObject.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.13 ms | 1400 KiB | 19 Q