3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Earth; class Human{} namespace Universe; $human = new \Earth\Human(); echo get_class($human); $class = str_replace('Earth\\', get_class($human)); echo $class;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kP51c
function name:  (null)
number of ops:  17
compiled vars:  !0 = $human, !1 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $2      'Earth%5CHuman'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    9     3        INIT_NS_FCALL_BY_NAME                                    'Universe%5Cget_class'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $5      
          6        ECHO                                                     $5
   11     7        INIT_NS_FCALL_BY_NAME                                    'Universe%5Cstr_replace'
          8        SEND_VAL_EX                                              'Earth%5C'
          9        INIT_NS_FCALL_BY_NAME                                    'Universe%5Cget_class'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0  $6      
         12        SEND_VAR_NO_REF_EX                                       $6
         13        DO_FCALL                                      0  $7      
         14        ASSIGN                                                   !1, $7
   13    15        ECHO                                                     !1
         16      > RETURN                                                   1

Class Earth\Human: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.73 ms | 1399 KiB | 17 Q