3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace some\amespace; class bar { function foo() { return "foo"; } } echo "blah: "; var_export (class_exists('bar', true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hg35b
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                     'blah%3A+'
   12     1        INIT_NS_FCALL_BY_NAME                                    'some%5Camespace%5Cvar_export'
          2        INIT_NS_FCALL_BY_NAME                                    'some%5Camespace%5Cclass_exists'
          3        SEND_VAL_EX                                              'bar'
          4        SEND_VAL_EX                                              <true>
          5        DO_FCALL                                      0  $0      
          6        SEND_VAR_NO_REF_EX                                       $0
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class some\amespace\bar:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hg35b
function name:  foo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   'foo'
          1*     > RETURN                                                   null

End of function foo

End of class some\amespace\bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.51 ms | 1394 KiB | 17 Q