3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Test\Bar; class Foo { } $foo = new Foo; var_dump(substr(strrchr(get_class($this), '\\'), 1));
based on T39hg
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EQ0kk
function name:  (null)
number of ops:  20
compiled vars:  !0 = $foo
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E >   NOP                                                      
   9     1        NEW                                              $2      :-5
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $2
  10     4        INIT_NS_FCALL_BY_NAME                                    'Test%5CBar%5Cvar_dump'
         5        INIT_NS_FCALL_BY_NAME                                    'Test%5CBar%5Csubstr'
         6        INIT_NS_FCALL_BY_NAME                                    'Test%5CBar%5Cstrrchr'
         7        INIT_NS_FCALL_BY_NAME                                    'Test%5CBar%5Cget_class'
         8        FETCH_THIS                                       $5      
         9        SEND_VAR_EX                                              $5
        10        DO_FCALL                                      0  $6      
        11        SEND_VAR_NO_REF_EX                                       $6
        12        SEND_VAL_EX                                              '%5C'
        13        DO_FCALL                                      0  $7      
        14        SEND_VAR_NO_REF_EX                                       $7
        15        SEND_VAL_EX                                              1
        16        DO_FCALL                                      0  $8      
        17        SEND_VAR_NO_REF_EX                                       $8
        18        DO_FCALL                                      0          
        19      > RETURN                                                   1

Class Test\Bar\Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 7.3.0