3v4l.org

run code in 300+ PHP versions simultaneously
<?php @error_reporting(E_WARNING); var_dump(error_reporting()); error_reporting(E_ALL); var_dump(error_reporting()); function f() { error_reporting(E_WARNING); throw new Exception; } try { @f(); } catch (Exception $e) {} var_dump(error_reporting());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 23
Branch analysis from position: 23
2 jumps found. (Code = 107) Position 1 = 24, Position 2 = -2
Branch analysis from position: 24
filename:       /in/ZU6Ap
function name:  (null)
number of ops:  30
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   BEGIN_SILENCE                                    ~1      
          1        INIT_FCALL                                               'error_reporting'
          2        SEND_VAL                                                 2
          3        DO_ICALL                                                 
          4        END_SILENCE                                              ~1
    4     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'error_reporting'
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'error_reporting'
         11        SEND_VAL                                                 32767
         12        DO_ICALL                                                 
    7    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'error_reporting'
         15        DO_ICALL                                         $6      
         16        SEND_VAR                                                 $6
         17        DO_ICALL                                                 
   13    18        BEGIN_SILENCE                                    ~8      
         19        INIT_FCALL                                               'f'
         20        DO_FCALL                                      0          
         21        END_SILENCE                                              ~8
         22      > JMP                                                      ->24
   14    23  E > > CATCH                                       last         'Exception'
   15    24    >   INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'error_reporting'
         26        DO_ICALL                                         $10     
         27        SEND_VAR                                                 $10
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/ZU6Ap
function name:  f
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 2
          2        DO_ICALL                                                 
   10     3        NEW                                              $1      'Exception'
          4        DO_FCALL                                      0          
          5      > THROW                                         0          $1
   11     6*     > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.1 ms | 1399 KiB | 18 Q