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);} @f(); var_dump(error_reporting());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aqNcp
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                                                 
    9    18        BEGIN_SILENCE                                    ~7      
         19        INIT_FCALL                                               'f'
         20        DO_FCALL                                      0          
         21        END_SILENCE                                              ~7
   10    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 = 62) Position 1 = -2
filename:       /in/aqNcp
function name:  f
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 2
          2        DO_ICALL                                                 
          3      > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.54 ms | 1399 KiB | 18 Q