3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Features\\Contexts\\AdminContext"; $actor = explode('\\', $noContext); $actor = substr(end($actor), 0, -7); var_dump($actor);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BBpti
function name:  (null)
number of ops:  19
compiled vars:  !0 = $string, !1 = $actor, !2 = $noContext
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Features%5CContexts%5CAdminContext'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%5C'
          3        SEND_VAR                                                 !2
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        INIT_FCALL                                               'substr'
          7        INIT_FCALL                                               'end'
          8        SEND_REF                                                 !1
          9        DO_ICALL                                         $6      
         10        SEND_VAR                                                 $6
         11        SEND_VAL                                                 0
         12        SEND_VAL                                                 -7
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !1, $7
    6    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.91 ms | 1386 KiB | 21 Q