3v4l.org

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

Class C: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.47 ms | 1395 KiB | 19 Q