3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = 'Chess\\WebBundle\\Category\\Classname'; $name = 'Classname'; var_dump(join('', array_slice(explode('\\', $name), -1)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rEm4k
function name:  (null)
number of ops:  18
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Chess%5CWebBundle%5CCategory%5CClassname'
    4     1        ASSIGN                                                   !0, 'Classname'
    6     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'join'
          4        SEND_VAL                                                 ''
          5        INIT_FCALL                                               'array_slice'
          6        INIT_FCALL                                               'explode'
          7        SEND_VAL                                                 '%5C'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        SEND_VAL                                                 -1
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.55 ms | 1394 KiB | 21 Q