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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KS0Yr
function name:  (null)
number of ops:  8
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'serialize'
          1        NEW                                              $1      'Y'
          2        DO_FCALL                                      0          
          3        SEND_VAR                                                 $1
          4        DO_ICALL                                         $3      
          5        ASSIGN                                           ~4      !0, $3
          6        ECHO                                                     ~4
          7      > RETURN                                                   1

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.38 ms | 1394 KiB | 15 Q