3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { protected $foo; private $bar; } $obj = unserialize("O:1:\"C\":2:{s:6:\"\0*\0foo\";i:42;s:6:\"\0*\0bar\";s:5:\"hello\";}"); var_dump($obj); var_export($obj->bar);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oZphZ
function name:  (null)
number of ops:  12
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'unserialize'
          1        SEND_VAL                                                 'O%3A1%3A%22C%22%3A2%3A%7Bs%3A6%3A%22%00%2A%00foo%22%3Bi%3A42%3Bs%3A6%3A%22%00%2A%00bar%22%3Bs%3A5%3A%22hello%22%3B%7D'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    9     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
   11     7        INIT_FCALL                                               'var_export'
          8        FETCH_OBJ_R                                      ~4      !0, 'bar'
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Class C: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.06 ms | 1394 KiB | 19 Q