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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/75Oau
function name:  (null)
number of ops:  8
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%5C0%2A%5C0foo%22%3Bi%3A42%3Bs%3A6%3A%22%5C0%2A%5C0bar%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                                                 
          7      > RETURN                                                   1

Class C: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.01 ms | 1394 KiB | 17 Q