3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(error_reporting()); // Turn off all error reporting error_reporting(0); var_dump(error_reporting()); // Report simple running errors error_reporting(E_ERROR | E_WARNING | E_PARSE); var_dump(error_reporting()); // Reporting E_NOTICE can be good too (to report uninitialized // variables or catch variable name misspellings ...) error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); var_dump(error_reporting()); // Report all errors except E_NOTICE error_reporting(E_ALL & ~E_NOTICE); var_dump(error_reporting()); // Report all PHP errors (see changelog) error_reporting(E_ALL); var_dump(error_reporting()); // Report all PHP errors error_reporting(-1); var_dump(error_reporting());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bZ8F8
function name:  (null)
number of ops:  54
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'error_reporting'
          2        DO_ICALL                                         $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'error_reporting'
          6        SEND_VAL                                                 0
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'error_reporting'
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                                 
    7    13        INIT_FCALL                                               'error_reporting'
         14        SEND_VAL                                                 7
         15        DO_ICALL                                                 
    8    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'error_reporting'
         18        DO_ICALL                                         $6      
         19        SEND_VAR                                                 $6
         20        DO_ICALL                                                 
   11    21        INIT_FCALL                                               'error_reporting'
         22        SEND_VAL                                                 15
         23        DO_ICALL                                                 
   12    24        INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'error_reporting'
         26        DO_ICALL                                         $9      
         27        SEND_VAR                                                 $9
         28        DO_ICALL                                                 
   14    29        INIT_FCALL                                               'error_reporting'
         30        SEND_VAL                                                 32759
         31        DO_ICALL                                                 
   15    32        INIT_FCALL                                               'var_dump'
         33        INIT_FCALL                                               'error_reporting'
         34        DO_ICALL                                         $12     
         35        SEND_VAR                                                 $12
         36        DO_ICALL                                                 
   17    37        INIT_FCALL                                               'error_reporting'
         38        SEND_VAL                                                 32767
         39        DO_ICALL                                                 
   18    40        INIT_FCALL                                               'var_dump'
         41        INIT_FCALL                                               'error_reporting'
         42        DO_ICALL                                         $15     
         43        SEND_VAR                                                 $15
         44        DO_ICALL                                                 
   20    45        INIT_FCALL                                               'error_reporting'
         46        SEND_VAL                                                 -1
         47        DO_ICALL                                                 
   21    48        INIT_FCALL                                               'var_dump'
         49        INIT_FCALL                                               'error_reporting'
         50        DO_ICALL                                         $18     
         51        SEND_VAR                                                 $18
         52        DO_ICALL                                                 
         53      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.8 ms | 1400 KiB | 17 Q