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() { try { error_reporting(0); throw new Exception; } catch (Exception $e) {} } @f(); var_dump(error_reporting());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n236n
function name:  (null)
number of ops:  28
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   BEGIN_SILENCE                                    ~0      
          1        INIT_FCALL                                               'error_reporting'
          2        SEND_VAL                                                 2
          3        DO_ICALL                                                 
          4        END_SILENCE                                              ~0
    4     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'error_reporting'
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          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                                         $5      
         16        SEND_VAR                                                 $5
         17        DO_ICALL                                                 
   14    18        BEGIN_SILENCE                                    ~7      
         19        INIT_FCALL                                               'f'
         20        DO_FCALL                                      0          
         21        END_SILENCE                                              ~7
   15    22        INIT_FCALL                                               'var_dump'
         23        INIT_FCALL                                               'error_reporting'
         24        DO_ICALL                                         $9      
         25        SEND_VAR                                                 $9
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n236n
function name:  f
number of ops:  9
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 0
          2        DO_ICALL                                                 
   11     3        NEW                                              $2      'Exception'
          4        DO_FCALL                                      0          
          5      > THROW                                         0          $2
          6*       JMP                                                      ->8
   12     7  E > > CATCH                                       last         'Exception'
   13     8    > > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.46 ms | 1390 KiB | 18 Q