3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait TOne { public $test; } trait TTwo { public $test; } class Bar { use TOne, TTwo; } $a = new Bar(); $a->foo(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7TLnC
function name:  (null)
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   DECLARE_CLASS                                            'bar'
   14     1        NEW                                              $1      'Bar'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   15     4        INIT_METHOD_CALL                                         !0, 'foo'
          5        DO_FCALL                                      0          
   16     6      > RETURN                                                   1

Class TOne: [no user functions]
Class TTwo: [no user functions]
Class Bar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.11 ms | 1392 KiB | 13 Q