3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.76 ms | 1399 KiB | 19 Q