3v4l.org

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

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

End of function unserialize

End of class MySplFileInfo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.74 ms | 1395 KiB | 17 Q