3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $bar = 1; } $foo = new Foo; $s = 'O:3:"Foo":1:{s:6:"*\0baz";i:1;}'; var_dump($s); $foo = unserialize($s); var_dump($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e5bXm
function name:  (null)
number of ops:  15
compiled vars:  !0 = $foo, !1 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $2      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    6     3        ASSIGN                                                   !1, 'O%3A3%3A%22Foo%22%3A1%3A%7Bs%3A6%3A%22%2A%5C0baz%22%3Bi%3A1%3B%7D'
    7     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                                 
    8     7        INIT_FCALL                                               'unserialize'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !0, $7
    9    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.26 ms | 1394 KiB | 17 Q