3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo\Bar; class Baz { public function __construct() { echo "Hello"; } } var_dump(class_exists('\Foo\Bar\Baz'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/phvig
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_NS_FCALL_BY_NAME                                    'Foo%5CBar%5Cvar_dump'
          1        INIT_NS_FCALL_BY_NAME                                    'Foo%5CBar%5Cclass_exists'
          2        SEND_VAL_EX                                              '%5CFoo%5CBar%5CBaz'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR_NO_REF_EX                                       $0
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class Foo\Bar\Baz:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/phvig
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'Hello'
    8     1      > RETURN                                                   null

End of function __construct

End of class Foo\Bar\Baz.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.97 ms | 1385 KiB | 17 Q