3v4l.org

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

Class Foo\Bar:
Function getclass:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1MYmt
function name:  getClass
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                   'Foo%5CBar'
   10     1*     > RETURN                                                   null

End of function getclass

End of class Foo\Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.96 ms | 1398 KiB | 15 Q