3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace CSBill\UserBundle\Entity { class User { } } 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/hXs9H
function name:  (null)
number of ops:  15
compiled vars:  !0 = $name, !1 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, 'CSBill%5CUserBundle%5CEntity%5CUser'
   13     1        INIT_FCALL                                               'sprintf'
          2        SEND_VAL                                                 'O%3A%25d%3A%22%25s%22%3A0%3A%7B%7D'
          3        STRLEN                                           ~3      !0
          4        SEND_VAL                                                 ~3
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
   15     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'unserialize'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                                 
   16    14      > RETURN                                                   1

Class CSBill\UserBundle\Entity\User: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.43 ms | 1394 KiB | 19 Q