3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Nested\Name; class Test { public static function speak(string $name) { var_dump($name::class); } } class Name{} Test::speak('Name');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/edGbq
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_STATIC_METHOD_CALL                                  'Nested%5CName%5CTest', 'speak'
          1        SEND_VAL                                                 'Name'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Class Nested\Name\Test:
Function speak:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/edGbq
function name:  speak
number of ops:  6
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        INIT_NS_FCALL_BY_NAME                                    'Nested%5CName%5Cvar_dump'
          2        FETCH_CLASS_NAME                                 ~1      !0
          3        SEND_VAL_EX                                              ~1
          4        DO_FCALL                                      0          
   10     5      > RETURN                                                   null

End of function speak

End of class Nested\Name\Test.

Class Nested\Name\Name: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.06 ms | 1398 KiB | 15 Q