3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Some\TestNamespace; trait trait1 { public function method1() { echo __CLASS__; } } class class1 { use trait1; } $obj = new class1; $obj->method1();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iggcJ
function name:  (null)
number of ops:  7
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   DECLARE_CLASS                                            'some%5Ctestnamespace%5Cclass1'
   17     1        NEW                                              $1      'Some%5CTestNamespace%5Cclass1'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   18     4        INIT_METHOD_CALL                                         !0, 'method1'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class Some\TestNamespace\trait1:
Function method1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iggcJ
function name:  method1
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   FETCH_CLASS_NAME                                 ~0      
          1        ECHO                                                     ~0
    9     2      > RETURN                                                   null

End of function method1

End of class Some\TestNamespace\trait1.

Class Some\TestNamespace\class1: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.71 ms | 1393 KiB | 13 Q