3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!interface_exists('Throwable')) { interface Throwable{} } if (true) { class FooException extends Exception implements Throwable {} class BarException implements Throwable {} }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
Branch analysis from position: 6
filename:       /in/o2t00
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'interface_exists'
          1        SEND_VAL                                                 'Throwable'
          2        DO_ICALL                                         $0      
          3        BOOL_NOT                                         ~1      $0
          4      > JMPZ                                                     ~1, ->6
    4     5    >   DECLARE_CLASS                                            'throwable'
    7     6    > > JMPZ                                                     <true>, ->9
    8     7    >   DECLARE_CLASS                                            'fooexception', 'exception'
    9     8        DECLARE_CLASS                                            'barexception'
   10     9    > > RETURN                                                   1

Class Throwable: [no user functions]
Class FooException: [no user functions]
Class BarException: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.7 ms | 1394 KiB | 15 Q