3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class Foo { } $unserialize = unserialize( serialize(new Foo), ['allowed_classes' => ['Foo']] ); var_dump($unserialize);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dOoiP
function name:  (null)
number of ops:  14
compiled vars:  !0 = $unserialize
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'unserialize'
    9     1        INIT_FCALL                                               'serialize'
          2        NEW                                              $1      'Foo'
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
   10     7        SEND_VAL                                                 <array>
          8        DO_ICALL                                         $4      
    8     9        ASSIGN                                                   !0, $4
   13    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.27 ms | 1394 KiB | 19 Q