3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL ^ E_DEPRECATED); class Callback { use CallbackTrait; } 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/CWBai
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                                                 24575
          2        DO_ICALL                                                 
    5     3        DECLARE_CLASS                                            'callback'
   14     4        NEW                                              $1      'Callback'
          5        DO_FCALL                                      0          
          6        FREE                                                     $1
          7      > RETURN                                                   1

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

End of function callback

End of class CallbackTrait.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.45 ms | 1385 KiB | 15 Q