3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function ($errno) { if (!(error_reporting() & $errno)) { return; } return false; }); $a = @(1/0); var_dump(error_get_last());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nvNsr
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FnvNsr%3A3%240'
   11     2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
   13     4        BEGIN_SILENCE                                    ~3      
          5        DIV                                              ~4      1, 0
          6        END_SILENCE                                              ~3
          7        ASSIGN                                                   !0, ~4
   14     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'error_get_last'
         10        DO_ICALL                                         $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FnvNsr%3A3%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nvNsr
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $errno
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'error_reporting'
          2        DO_ICALL                                         $1      
          3        BW_AND                                           ~2      !0, $1
          4        BOOL_NOT                                         ~3      ~2
          5      > JMPZ                                                     ~3, ->7
    6     6    > > RETURN                                                   null
    9     7    > > RETURN                                                   <false>
   11     8*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FnvNsr%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.14 ms | 1399 KiB | 21 Q