3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface badsadbad { } class Frowncryfrownsad {} $reflection = new ClassReflection("Frowncryfrownsad"); if ($reflection->implementsInterface("badsadbad")) { echo "very bad sad bad."; } else { echo "all okay"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KoAF3
function name:  (null)
number of ops:  12
compiled vars:  !0 = $reflection
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'ClassReflection'
          1        SEND_VAL_EX                                              'Frowncryfrownsad'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   13     4        INIT_METHOD_CALL                                         !0, 'implementsInterface'
          5        SEND_VAL_EX                                              'badsadbad'
          6        DO_FCALL                                      0  $4      
          7      > JMPZ                                                     $4, ->10
   14     8    >   ECHO                                                     'very+bad+sad+bad.'
          9      > JMP                                                      ->11
   17    10    >   ECHO                                                     'all+okay'
   18    11    > > RETURN                                                   1

Class badsadbad: [no user functions]
Class Frowncryfrownsad: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.63 ms | 938 KiB | 14 Q