3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public $prop; } Class Bar { public int $a; // <== Bar::$a MUST be an integer but ... public function __destruct() { var_dump($this->a); } } unserialize('O:3:"Bar":1:{s:1:"a";O:3:"Foo":2:{s:4:"prop";s:3:"baz";}}');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7deSd
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                                   'unserialize'
          1        SEND_VAL                                                     'O%3A3%3A%22Bar%22%3A1%3A%7Bs%3A1%3A%22a%22%3BO%3A3%3A%22Foo%22%3A2%3A%7Bs%3A4%3A%22prop%22%3Bs%3A3%3A%22baz%22%3B%7D%7D'
          2        DO_ICALL                                                     
          3      > RETURN                                                       1

Class Foo: [no user functions]
Class Bar:
Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7deSd
function name:  __destruct
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                                   'var_dump'
          1        FETCH_OBJ_R                                          ~0      'a'
          2        SEND_VAL                                                     ~0
          3        DO_ICALL                                                     
   13     4      > RETURN                                                       null

End of function __destruct

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
114.74 ms | 517 KiB | 11 Q