3v4l.org

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

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

End of function __wakeup

End of class obj.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182 ms | 1394 KiB | 17 Q