3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait ValuesContainer{ //const myVariable = 12; // A trait can't has constants private $value1 = 1; protected $value2 = 2; public $value3 = 3; } class ValueB{ use ValuesContainer; //private $value1 = 7; // FAIL !!! //protected $value2 = 6; // FAIL !!! //public $value3 = 5; // FAIL !!! }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0Asks
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   DECLARE_CLASS                                            'valueb'
   16     1      > RETURN                                                   1

Class ValuesContainer: [no user functions]
Class ValueB: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.22 ms | 1392 KiB | 13 Q