3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('EXCEPTION_CATCHER', PHP_VERSION_ID < 70000 ? 'Exception' : 'Throwable'); try{ throw new Exception('aaa'); }catch(EXCEPTION_CATCHER $e) { echo 'joho'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 13
Branch analysis from position: 13
2 jumps found. (Code = 107) Position 1 = 14, Position 2 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rvZEi
function name:  (null)
number of ops:  16
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'EXCEPTION_CATCHER'
          2      > JMPZ                                                     <false>, ->5
          3    >   QM_ASSIGN                                        ~1      'Exception'
          4      > JMP                                                      ->6
          5    >   QM_ASSIGN                                        ~1      'Throwable'
          6    >   SEND_VAL                                                 ~1
          7        DO_ICALL                                                 
    6     8        NEW                                              $3      'Exception'
          9        SEND_VAL_EX                                              'aaa'
         10        DO_FCALL                                      0          
         11      > THROW                                         0          $3
         12*       JMP                                                      ->15
    7    13  E > > CATCH                                       last         'EXCEPTION_CATCHER'
    9    14    >   ECHO                                                     'joho'
   10    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.31 ms | 1395 KiB | 15 Q