3v4l.org

run code in 500+ PHP versions simultaneously
<?php error_reporting(E_ALL ^ E_DEPRECATED); class Callback { use CallbackTrait; public function __construct() {} } trait CallbackTrait { public function callback() { echo 'this is called'; } } new Callback();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nbh6X
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'error_reporting'
          1        SEND_VAL                                                     22527
          2        DO_ICALL                                                     
    5     3        DECLARE_CLASS                                                'callback'
   15     4        NEW                                                  $1      'Callback'
          5        DO_FCALL                                          0          
          6        FREE                                                         $1
          7      > RETURN                                                       1

Class Callback:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nbh6X
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                       null

End of function __construct

End of class Callback.

Class CallbackTrait:
Function callback:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nbh6X
function name:  callback
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                         'this+is+called'
   12     1      > RETURN                                                       null

End of function callback

End of class CallbackTrait.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
213.83 ms | 2093 KiB | 14 Q