3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = 'Chess\\WebBundle\\Category\\Classname'; $name = 'Classname'; var_dump(explode('\\', $name)); var_dump(array_slice(explode('\\', $name), -1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jdje3
function name:  (null)
number of ops:  21
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'
    5     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '%5C'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'array_slice'
         11        INIT_FCALL                                               'explode'
         12        SEND_VAL                                                 '%5C'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        SEND_VAL                                                 -1
         17        DO_ICALL                                         $6      
         18        SEND_VAR                                                 $6
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.18 ms | 1395 KiB | 19 Q