3v4l.org

run code in 500+ PHP versions simultaneously
<?php if (!interface_exists('Throwable', false)) { interface Throwable { } } if (!class_exists('Error', false)) { // We can't really avoid making this extend Exception in PHP 5. class Error extends Exception implements Throwable { } } if (!class_exists('TypeError', false)) { class TypeError extends Error { } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 11
Branch analysis from position: 7
filename:       /in/Qsse1
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'interface_exists'
          1        SEND_VAL                                                     'Throwable'
          2        SEND_VAL                                                     <false>
          3        DO_ICALL                                             $0      
          4        BOOL_NOT                                             ~1      $0
          5      > JMPZ                                                         ~1, ->7
    4     6    >   DECLARE_CLASS                                                'throwable'
    9     7    >   FRAMELESS_ICALL_2                class_exists        ~2      'Error', <false>
          8        BOOL_NOT                                             ~3      ~2
          9      > JMPZ                                                         ~3, ->11
   11    10    >   DECLARE_CLASS                                                'error', 'exception'
   17    11    >   FRAMELESS_ICALL_2                class_exists        ~4      'TypeError', <false>
         12        BOOL_NOT                                             ~5      ~4
         13      > JMPZ                                                         ~5, ->15
   18    14    >   DECLARE_CLASS                                                'typeerror', 'error'
   22    15    > > RETURN                                                       1

Class Throwable: [no user functions]
Class Error: [no user functions]
Class TypeError: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.63 ms | 3241 KiB | 14 Q