3v4l.org

run code in 300+ PHP versions simultaneously
) <?php class X { private $i = 'foo'; } class Y extends X { public $a, $b = 2; protected $c, $d = 'd'; private $e, $i = 'bar'; } echo $s = serialize(new Y); var_dump(unserialize($s));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/malIA
function name:  (null)
number of ops:  15
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%29%0A'
   16     1        INIT_FCALL                                               'serialize'
          2        NEW                                              $1      'Y'
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                         $3      
          6        ASSIGN                                           ~4      !0, $3
          7        ECHO                                                     ~4
   17     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'unserialize'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Class X: [no user functions]
Class Y: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.54 ms | 1394 KiB | 19 Q