3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __wakeup() { var_dump('test'); } } $x = new Foo(); $y = serialize($x); var_dump(unserialize($y, true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9PhpO
function name:  (null)
number of ops:  15
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $2      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   12     3        INIT_FCALL                                               'serialize'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !1, $5
   14     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'unserialize'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Class Foo:
Function __wakeup:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9PhpO
function name:  __wakeup
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'test'
          2        DO_ICALL                                                 
    8     3      > RETURN                                                   null

End of function __wakeup

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.02 ms | 1395 KiB | 19 Q