3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MySplFileObject extends SplFileObject{ public function __construct() {} public function serialize() { return ''; } public function unserialize($data) {} } $fileObject = new MySplFileObject; echo serialize($fileObject); $fileObject = unserialize('O:15:"MySplFileObject":0:{}'); var_dump($fileObject); echo $fileObject;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J8n6j
function name:  (null)
number of ops:  16
compiled vars:  !0 = $fileObject
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'MySplFileObject'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        INIT_FCALL                                               'serialize'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ECHO                                                     $4
   11     7        INIT_FCALL                                               'unserialize'
          8        SEND_VAL                                                 'O%3A15%3A%22MySplFileObject%22%3A0%3A%7B%7D'
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !0, $5
   12    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
   13    14        ECHO                                                     !0
         15      > RETURN                                                   1

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

End of function unserialize

End of class MySplFileObject.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.34 ms | 1396 KiB | 19 Q