3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { protected $foo; private $bar; } $obj = unserialize('O:1:"C":2:{s:6:"*foo";i:42;s:6:"*bar";s:5:"hello";}'); var_dump($obj);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B5OGn
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%2Afoo%22%3Bi%3A42%3Bs%3A6%3A%22%2Abar%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:
151.14 ms | 1394 KiB | 17 Q