3v4l.org

run code in 500+ PHP versions simultaneously
<?php if (!class_exists(OptionalInterface::class)) { interface OptionalInterface {} } class Expression implements OptionalInterface {}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/hF1vr
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   FRAMELESS_ICALL_1                class_exists        ~0      'OptionalInterface'
          1        BOOL_NOT                                             ~1      ~0
          2      > JMPZ                                                         ~1, ->4
    4     3    >   DECLARE_CLASS                                                'optionalinterface'
    7     4    >   DECLARE_CLASS                                                'expression'
          5      > RETURN                                                       1

Class OptionalInterface: [no user functions]
Class Expression: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.28 ms | 1569 KiB | 13 Q