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('C:15:"MySplFileObject":0:{}'); print_r($fileObject); echo $fileObject;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UCesN
function name:  (null)
number of ops:  12
compiled vars:  !0 = $fileObject
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'MySplFileObject'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        INIT_FCALL                                               'unserialize'
          4        SEND_VAL                                                 'C%3A15%3A%22MySplFileObject%22%3A0%3A%7B%7D'
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
   11     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
   12    10        ECHO                                                     !0
         11      > RETURN                                                   1

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