3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; $x = new \ArrayObject(); var_dump($x instanceof Traversable); var_dump($x instanceof \Traversable);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YgpKg
function name:  (null)
number of ops:  12
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $1      'ArrayObject'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    5     3        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
          4        INSTANCEOF                                       ~4      !0, 'Foo%5CTraversable'
          5        SEND_VAL_EX                                              ~4
          6        DO_FCALL                                      0          
    6     7        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
          8        INSTANCEOF                                       ~6      !0, 'Traversable'
          9        SEND_VAL_EX                                              ~6
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.5 ms | 1009 KiB | 14 Q