3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myErrorHandler($errno, $errstr, $errfile, $errline) { if (!!$errstr) { throw new Exception($errstr); } return false; } set_error_handler('myErrorHandler'); try{ //division by zero //$number = 5/0; unlink("c:\boot.bat"); $a=5+3; echo $a; } catch(Exception $ex){ echo "Dotum bi hata yapmış olmalısın mesaj bu:".$ex->getMessage(), ' : Hadi kolay gelsin sana canım'; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 9
Branch analysis from position: 9
2 jumps found. (Code = 107) Position 1 = 10, Position 2 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jk7BS
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $ex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'myErrorHandler'
          2        DO_ICALL                                                 
   15     3        INIT_FCALL                                               'unlink'
          4        SEND_VAL                                                 'c%3A%5Cboot.bat'
          5        DO_ICALL                                                 
   16     6        ASSIGN                                                   !0, 8
   17     7        ECHO                                                     !0
          8      > JMP                                                      ->15
   19     9  E > > CATCH                                       last         'Exception'
   20    10    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         11        DO_FCALL                                      0  $5      
         12        CONCAT                                           ~6      'Dotum+bi+hata+yapm%C4%B1%C5%9F+olmal%C4%B1s%C4%B1n+mesaj+bu%3A', $5
         13        ECHO                                                     ~6
         14        ECHO                                                     '+%3A+Hadi+kolay+gelsin+sana+can%C4%B1m'
   21    15    > > RETURN                                                   1

Function myerrorhandler:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jk7BS
function name:  myErrorHandler
number of ops:  13
compiled vars:  !0 = $errno, !1 = $errstr, !2 = $errfile, !3 = $errline
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    4     4        BOOL_NOT                                         ~4      !1
          5        BOOL_NOT                                         ~5      ~4
          6      > JMPZ                                                     ~5, ->11
    5     7    >   NEW                                              $6      'Exception'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0          
         10      > THROW                                         0          $6
    7    11    > > RETURN                                                   <false>
    8    12*     > RETURN                                                   null

End of function myerrorhandler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.05 ms | 1004 KiB | 15 Q