3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{}; class B{}; /* @var A $a */ $a = unserialize(serialize(new A())); assert($a instanceof A); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N5mm5
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'unserialize'
          1        INIT_FCALL                                               'serialize'
          2        NEW                                              $1      'A'
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !0, $4
    9     9        ASSERT_CHECK                                             
         10        INIT_FCALL                                               'assert'
         11        INSTANCEOF                                       ~6      !0, 'A'
         12        SEND_VAL                                                 ~6
         13        SEND_VAL                                                 'assert%28%24a+instanceof+A%29'
         14        DO_ICALL                                                 
   11    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Class A: [no user functions]
Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.31 ms | 1000 KiB | 17 Q