3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CantUnserializeThis extends ArrayObject { } $className = 'CantUnserializeThis'; var_dump(unserialize(sprintf( 'C:%d:"%s":0:{}', strlen($className), $className ))); var_dump(unserialize(sprintf( 'S:%d:"%s":0:{}', strlen($className), $className )));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YGgfO
function name:  (null)
number of ops:  26
compiled vars:  !0 = $className
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'CantUnserializeThis'
    9     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'unserialize'
          3        INIT_FCALL                                               'sprintf'
   10     4        SEND_VAL                                                 'C%3A%25d%3A%22%25s%22%3A0%3A%7B%7D'
   11     5        STRLEN                                           ~2      !0
          6        SEND_VAL                                                 ~2
   12     7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                                 
   15    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'unserialize'
         15        INIT_FCALL                                               'sprintf'
   16    16        SEND_VAL                                                 'S%3A%25d%3A%22%25s%22%3A0%3A%7B%7D'
   17    17        STRLEN                                           ~6      !0
         18        SEND_VAL                                                 ~6
   18    19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $7      
         21        SEND_VAR                                                 $7
         22        DO_ICALL                                         $8      
         23        SEND_VAR                                                 $8
         24        DO_ICALL                                                 
   19    25      > RETURN                                                   1

Class CantUnserializeThis: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.77 ms | 1395 KiB | 19 Q