3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace 😎 { class 😎 { function __construct() { var_dump((new \ReflectionObject($this))->getNamespaceName()); var_dump((new \ReflectionObject($this))->getShortName()); } } new 😎; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/39S37
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $0      '%F0%9F%98%8E%5C%F0%9F%98%8E'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
   12     3      > RETURN                                                   1

Class 😎\😎:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/39S37
function name:  __construct
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_NS_FCALL_BY_NAME                                    '%F0%9F%98%8E%5Cvar_dump'
          1        NEW                                              $0      'ReflectionObject'
          2        FETCH_THIS                                       $1      
          3        SEND_VAR_EX                                              $1
          4        DO_FCALL                                      0          
          5        INIT_METHOD_CALL                                         $0, 'getNamespaceName'
          6        DO_FCALL                                      0  $3      
          7        SEND_VAR_NO_REF_EX                                       $3
          8        DO_FCALL                                      0          
    7     9        INIT_NS_FCALL_BY_NAME                                    '%F0%9F%98%8E%5Cvar_dump'
         10        NEW                                              $5      'ReflectionObject'
         11        FETCH_THIS                                       $6      
         12        SEND_VAR_EX                                              $6
         13        DO_FCALL                                      0          
         14        INIT_METHOD_CALL                                         $5, 'getShortName'
         15        DO_FCALL                                      0  $8      
         16        SEND_VAR_NO_REF_EX                                       $8
         17        DO_FCALL                                      0          
    8    18      > RETURN                                                   null

End of function __construct

End of class 😎\😎.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.65 ms | 1395 KiB | 15 Q