3v4l.org

run code in 300+ 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                                  '%00%7Bclosure%7D%2Fin%2FG1Onu%3A3%240'
    6     2        SEND_VAL                                                 ~2
          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

Function %00%7Bclosure%7D%2Fin%2FG1Onu%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/G1Onu
function name:  {closure}
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 function %00%7Bclosure%7D%2Fin%2FG1Onu%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.32 ms | 1396 KiB | 15 Q