3v4l.org

run code in 300+ PHP versions simultaneously
<?php // シリアライズ元がないクラスでアンシリアライズ $b = unserialize('O:4:"Hoge":0:{}'); var_dump($b); //object(__PHP_Incomplete_Class)#1 (1) { // ["__PHP_Incomplete_Class_Name"]=> // string(4) "Hoge" //} var_dump(is_object($b)); // if(PHPのバージョン >= 7.2.0) { // bool(true) // } else { // bool(false) // }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LTdrs
function name:  (null)
number of ops:  12
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'unserialize'
          1        SEND_VAL                                                 'O%3A4%3A%22Hoge%22%3A0%3A%7B%7D'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    9     7        INIT_FCALL                                               'var_dump'
          8        TYPE_CHECK                                  256  ~4      !0
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                                 
   14    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.53 ms | 1445 KiB | 15 Q