3v4l.org

run code in 300+ 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 = 13, Position 2 = 14
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 14
Branch analysis from position: 7
filename:       /in/Qsse1
function name:  (null)
number of ops:  22
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    >   INIT_FCALL                                               'class_exists'
          8        SEND_VAL                                                 'Error'
          9        SEND_VAL                                                 <false>
         10        DO_ICALL                                         $2      
         11        BOOL_NOT                                         ~3      $2
         12      > JMPZ                                                     ~3, ->14
   11    13    >   DECLARE_CLASS                                            'error', 'exception'
   17    14    >   INIT_FCALL                                               'class_exists'
         15        SEND_VAL                                                 'TypeError'
         16        SEND_VAL                                                 <false>
         17        DO_ICALL                                         $4      
         18        BOOL_NOT                                         ~5      $4
         19      > JMPZ                                                     ~5, ->21
   18    20    >   DECLARE_CLASS                                            'typeerror', 'error'
   22    21    > > 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.0.0


preferences:
179.68 ms | 1411 KiB | 17 Q