3v4l.org

run code in 300+ PHP versions simultaneously
<?php class users { public $username, $status; public function __wakeup() { $func_status = $this -> status; $func_status(); } } $s = unserialize( stripslashes( 'O:5:"users":2:{s:6:"status";s:9:"phpinfo()";s:8:"username";s:4:"aaaa";}' ) ); echo $s->username;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0aP93
function name:  (null)
number of ops:  10
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'unserialize'
          1        INIT_FCALL                                               'stripslashes'
          2        SEND_VAL                                                 'O%3A5%3A%22users%22%3A2%3A%7Bs%3A6%3A%22status%22%3Bs%3A9%3A%22phpinfo%28%29%22%3Bs%3A8%3A%22username%22%3Bs%3A4%3A%22aaaa%22%3B%7D'
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
   14     7        FETCH_OBJ_R                                      ~4      !0, 'username'
          8        ECHO                                                     ~4
          9      > RETURN                                                   1

Class users:
Function __wakeup:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0aP93
function name:  __wakeup
number of ops:  5
compiled vars:  !0 = $func_status
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_OBJ_R                                      ~1      'status'
          1        ASSIGN                                                   !0, ~1
    7     2        INIT_DYNAMIC_CALL                                        !0
          3        DO_FCALL                                      0          
    8     4      > RETURN                                                   null

End of function __wakeup

End of class users.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.34 ms | 1395 KiB | 17 Q