3v4l.org

run code in 500+ PHP versions simultaneously
<?php class P { private $my_private_prop = 'parent value'; protected $my_protected_prop = 'parent value'; } class C extends P { private $my_private_prop = 'child value'; protected $my_protected_prop = 'child value'; } echo var_dump(new P); echo var_dump(new C);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FqecC
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                                   'var_dump'
          1        NEW                                                  $0      'P'
          2        DO_FCALL                                          0          
          3        SEND_VAR                                                     $0
          4        DO_ICALL                                             $2      
          5        ECHO                                                         $2
   13     6        INIT_FCALL                                                   'var_dump'
          7        NEW                                                  $3      'C'
          8        DO_FCALL                                          0          
          9        SEND_VAR                                                     $3
         10        DO_ICALL                                             $5      
         11        ECHO                                                         $5
         12      > RETURN                                                       1

Class P: [no user functions]
Class C: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.22 ms | 1473 KiB | 14 Q