3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reporter = (new ReflectionFunction('trigger_error'))->getClosure(); $reporter('test', E_USER_WARNING);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6acJd
function name:  (null)
number of ops:  11
compiled vars:  !0 = $reporter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'ReflectionFunction'
          1        SEND_VAL_EX                                              'trigger_error'
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $1, 'getClosure'
          4        DO_FCALL                                      0  $3      
          5        ASSIGN                                                   !0, $3
    4     6        INIT_DYNAMIC_CALL                                        !0
          7        SEND_VAL_EX                                              'test'
          8        SEND_VAL_EX                                              512
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.46 ms | 1397 KiB | 13 Q