3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace boule\de\ta\mere; class foo{} $class = 'boule\\de\\ta\\mere\\foo'; $object = new $class(); var_dump($object instanceof boule\de\ta\mere\foo); var_dump(is_a($object, 'boule\de\taa\mere\foo'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TvqtS
function name:  (null)
number of ops:  17
compiled vars:  !0 = $class, !1 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 'boule%5Cde%5Cta%5Cmere%5Cfoo'
    7     1        FETCH_CLASS                                   0  $3      !0
          2        NEW                                              $4      $3
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
    8     5        INIT_NS_FCALL_BY_NAME                                    'boule%5Cde%5Cta%5Cmere%5Cvar_dump'
          6        INSTANCEOF                                       ~7      !1, 'boule%5Cde%5Cta%5Cmere%5Cboule%5Cde%5Cta%5Cmere%5Cfoo'
          7        SEND_VAL_EX                                              ~7
          8        DO_FCALL                                      0          
    9     9        INIT_NS_FCALL_BY_NAME                                    'boule%5Cde%5Cta%5Cmere%5Cvar_dump'
         10        INIT_NS_FCALL_BY_NAME                                    'boule%5Cde%5Cta%5Cmere%5Cis_a'
         11        SEND_VAR_EX                                              !1
         12        SEND_VAL_EX                                              'boule%5Cde%5Ctaa%5Cmere%5Cfoo'
         13        DO_FCALL                                      0  $9      
         14        SEND_VAR_NO_REF_EX                                       $9
         15        DO_FCALL                                      0          
         16      > RETURN                                                   1

Class boule\de\ta\mere\foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.01 ms | 1394 KiB | 17 Q