3v4l.org

run code in 300+ PHP versions simultaneously
<?php @error_reporting(E_WARNING); var_dump(error_reporting()); error_reporting(E_ALL); 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/EfT9N
function name:  (null)
number of ops:  23
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                                                 
    8    13        BEGIN_SILENCE                                    ~5      
         14        INIT_FCALL                                               'f'
         15        DO_FCALL                                      0          
         16        END_SILENCE                                              ~5
    9    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'error_reporting'
         19        DO_ICALL                                         $7      
         20        SEND_VAR                                                 $7
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EfT9N
function name:  f
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     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:
157.13 ms | 1398 KiB | 18 Q