3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; interface Bar {} class Baz implements \Foo\Bar {} $arr = class_implements("\\Foo\\Bar"); in_array("\\Foo\\Bar", $arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AmXrB
function name:  (null)
number of ops:  10
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CLASS                                            'foo%5Cbaz'
    5     1        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cclass_implements'
          2        SEND_VAL_EX                                              '%5CFoo%5CBar'
          3        DO_FCALL                                      0  $1      
          4        ASSIGN                                                   !0, $1
    6     5        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cin_array'
          6        SEND_VAL_EX                                              '%5CFoo%5CBar'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Class Foo\Bar: [no user functions]
Class Foo\Baz: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.32 ms | 1394 KiB | 17 Q