3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace NS; class Foo { public static function s() { var_dump(__CLASS__); var_dump(Foo::class); } } $x = new Foo(); $x->s();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pZptr
function name:  (null)
number of ops:  6
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'NS%5CFoo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        INIT_METHOD_CALL                                         !0, 's'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class NS\Foo:
Function s:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pZptr
function name:  s
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_NS_FCALL_BY_NAME                                    'NS%5Cvar_dump'
          1        SEND_VAL_EX                                              'NS%5CFoo'
          2        DO_FCALL                                      0          
    9     3        INIT_NS_FCALL_BY_NAME                                    'NS%5Cvar_dump'
          4        SEND_VAL_EX                                              'NS%5CFoo'
          5        DO_FCALL                                      0          
   10     6      > RETURN                                                   null

End of function s

End of class NS\Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.9 ms | 1394 KiB | 15 Q