3v4l.org

run code in 500+ PHP versions simultaneously
<?php set_error_handler(function ($level, $message, $file = '', $line = 0) { throw new ErrorException($message, 0, $level, $file, $line); }); try { $a = 1/0; } catch (Throwable $e) { echo "Come on, you cant't divide by zero!"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G1Onu
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a, !1 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
    6     2        SEND_VAL                                                     ~2
    3     3        DO_ICALL                                                     
    9     4        DIV                                                  ~4      1, 0
          5        ASSIGN                                                       !0, ~4
          6      > JMP                                                          ->9
   10     7  E > > CATCH                                           last         'Throwable'
   11     8    >   ECHO                                                         'Come+on%2C+you+cant%27t+divide+by+zero%21'
   12     9    > > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/G1Onu
function name:  {closure:/in/G1Onu:3}
number of ops:  13
compiled vars:  !0 = $level, !1 = $message, !2 = $file, !3 = $line
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV_INIT                                            !2      ''
          3        RECV_INIT                                            !3      0
    5     4        NEW                                                  $4      'ErrorException'
          5        SEND_VAR_EX                                                  !1
          6        SEND_VAL_EX                                                  0
          7        SEND_VAR_EX                                                  !0
          8        SEND_VAR_EX                                                  !2
          9        SEND_VAR_EX                                                  !3
         10        DO_FCALL                                          0          
         11      > THROW                                             0          $4
    6    12*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
201.6 ms | 2290 KiB | 14 Q