3v4l.org

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

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

End of function __construct

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

End of function unserialize

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

End of function serialize

End of class MySplFileInfo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.4 ms | 1400 KiB | 19 Q