3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait PropertiesTrait { public $x = 1; } class PropertiesExample { use PropertiesTrait; } $example = new PropertiesExample; $example->x;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PFVbq
function name:  (null)
number of ops:  7
compiled vars:  !0 = $example
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   DECLARE_CLASS                                            'propertiesexample'
   10     1        NEW                                              $1      'PropertiesExample'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   11     4        FETCH_OBJ_R                                      ~4      !0, 'x'
          5        FREE                                                     ~4
          6      > RETURN                                                   1

Class PropertiesTrait: [no user functions]
Class PropertiesExample: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.42 ms | 1392 KiB | 13 Q