3v4l.org

run code in 300+ PHP versions simultaneously
<?php class obj { var $prop; function __wakeup() { $this->prop = 'prop'; } } $x = 'a:3:{i:0;O:8:"stdClass":2:{i:0;a:1:{i:0;i:1;}i:0;i:1;}i:1;O:3:"obj":1:{s:4:"prop";i:2;}i:2;R:3;}'; $y = unserialize($x); var_dump($y);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PrZCl
function name:  (null)
number of ops:  9
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, 'a%3A3%3A%7Bi%3A0%3BO%3A8%3A%22stdClass%22%3A2%3A%7Bi%3A0%3Ba%3A1%3A%7Bi%3A0%3Bi%3A1%3B%7Di%3A0%3Bi%3A1%3B%7Di%3A1%3BO%3A3%3A%22obj%22%3A1%3A%7Bs%3A4%3A%22prop%22%3Bi%3A2%3B%7Di%3A2%3BR%3A3%3B%7D'
   11     1        INIT_FCALL                                               'unserialize'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   13     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class obj:
Function __wakeup:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PrZCl
function name:  __wakeup
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN_OBJ                                               'prop'
          1        OP_DATA                                                  'prop'
    7     2      > RETURN                                                   null

End of function __wakeup

End of class obj.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.44 ms | 1386 KiB | 17 Q