3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = 'Chess\\WebBundle\\Category\\Classname'; $name = 'Classname'; $name = ''; 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/TA3TR
function name:  (null)
number of ops:  22
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        ASSIGN                                                   !0, ''
    6     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '%5C'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'array_slice'
         12        INIT_FCALL                                               'explode'
         13        SEND_VAL                                                 '%5C'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $6      
         16        SEND_VAR                                                 $6
         17        SEND_VAL                                                 -1
         18        DO_ICALL                                         $7      
         19        SEND_VAR                                                 $7
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.69 ms | 1395 KiB | 19 Q