3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A\C\D\C { class F{} } namespace B { use A\C\D\C\F; $foo = new F(); assert('$foo instanceof F', 'something amiss'); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DKRdk
function name:  (null)
number of ops:  9
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'A%5CC%5CD%5CC%5CF'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   11     3        ASSERT_CHECK                                             
          4        INIT_NS_FCALL_BY_NAME                                    'B%5Cassert'
          5        SEND_VAL_EX                                              '%24foo+instanceof+F'
          6        SEND_VAL_EX                                              'something+amiss'
          7        DO_FCALL                                      0          
   12     8      > RETURN                                                   1

Class A\C\D\C\F: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.45 ms | 1394 KiB | 15 Q