3v4l.org

run code in 300+ PHP versions simultaneously
<?php function warning_handler($errno, $errstr) { return true; } set_error_handler("warning_handler", E_WARNING); var_dump(1.0/0.0); // w/o using @ or messing with error_reporting restore_error_handler(); var_dump(5/0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NTlXJ
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'warning_handler'
          2        SEND_VAL                                                 2
          3        DO_ICALL                                                 
    9     4        INIT_FCALL                                               'var_dump'
          5        DIV                                              ~1      1, 0
          6        SEND_VAL                                                 ~1
          7        DO_ICALL                                                 
   11     8        INIT_FCALL                                               'restore_error_handler'
          9        DO_ICALL                                                 
   13    10        INIT_FCALL                                               'var_dump'
         11        DIV                                              ~4      5, 0
         12        SEND_VAL                                                 ~4
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Function warning_handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NTlXJ
function name:  warning_handler
number of ops:  4
compiled vars:  !0 = $errno, !1 = $errstr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2      > RETURN                                                   <true>
    5     3*     > RETURN                                                   null

End of function warning_handler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.48 ms | 1395 KiB | 19 Q