3v4l.org

run code in 500+ PHP versions simultaneously
<?php trait TraitName{ public function check(){ echo ' To jest dziaƂanie cechy '.__TRAIT__; } } class TestA{ use TraitName; } $objTestA = new TestA(); $objTestA->check();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MNNDn
function name:  (null)
number of ops:  7
compiled vars:  !0 = $objTestA
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   DECLARE_CLASS                                                'testa'
   13     1        NEW                                                  $1      'TestA'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
   14     4        INIT_METHOD_CALL                                             !0, 'check'
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

Class TraitName:
Function check:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MNNDn
function name:  check
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                         '+To+jest+dzia%C5%82anie+cechy+TraitName'
    6     1      > RETURN                                                       null

End of function check

End of class TraitName.

Class TestA: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
151.06 ms | 2306 KiB | 13 Q