3v4l.org

run code in 500+ PHP versions simultaneously
<?php error_reporting(E_ALL); function handleError() { var_dump('handle_error', error_reporting()); } set_error_handler(\Closure::fromCallable('handleError')); var_dump(error_reporting()); @$a++; @$b++;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qZ1OG
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'error_reporting'
          1        SEND_VAL                                                     30719
          2        DO_ICALL                                                     
    9     3        INIT_FCALL                                                   'set_error_handler'
          4        INIT_STATIC_METHOD_CALL                                      'Closure', 'fromCallable'
          5        SEND_VAL                                                     'handleError'
          6        DO_FCALL                                          0  $3      
          7        SEND_VAR                                                     $3
          8        DO_ICALL                                                     
   11     9        INIT_FCALL                                                   'var_dump'
         10        INIT_FCALL                                                   'error_reporting'
         11        DO_ICALL                                             $5      
         12        SEND_VAR                                                     $5
         13        DO_ICALL                                                     
   12    14        BEGIN_SILENCE                                        ~7      
         15        PRE_INC                                                      !0
         16        END_SILENCE                                                  ~7
   14    17        BEGIN_SILENCE                                        ~9      
         18        PRE_INC                                                      !1
         19        END_SILENCE                                                  ~9
         20      > RETURN                                                       1

Function handleerror:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qZ1OG
function name:  handleError
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                                   'var_dump'
          1        SEND_VAL                                                     'handle_error'
          2        INIT_FCALL                                                   'error_reporting'
          3        DO_ICALL                                             $0      
          4        SEND_VAR                                                     $0
          5        DO_ICALL                                                     
    8     6      > RETURN                                                       null

End of function handleerror

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
139.19 ms | 481 KiB | 10 Q