3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace CSBill\UserBundle\Entity { class User implements \Serializable { public function serialize() { } public function unserialize() { } } } namespace { $name = 'CSBill\UserBundle\Entity\User'; $string = sprintf('O:%d:"%s":0:{}', strlen($name), $name); var_dump(unserialize($string)); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bUddp
function name:  (null)
number of ops:  16
compiled vars:  !0 = $name, !1 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CLASS                                            'csbill%5Cuserbundle%5Centity%5Cuser'
   19     1        ASSIGN                                                   !0, 'CSBill%5CUserBundle%5CEntity%5CUser'
   21     2        INIT_FCALL                                               'sprintf'
          3        SEND_VAL                                                 'O%3A%25d%3A%22%25s%22%3A0%3A%7B%7D'
          4        STRLEN                                           ~3      !0
          5        SEND_VAL                                                 ~3
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
   23     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'unserialize'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $6      
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                                 
   24    15      > RETURN                                                   1

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

End of function unserialize

End of class CSBill\UserBundle\Entity\User.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.52 ms | 1387 KiB | 19 Q