3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = 'C:\Folder\Sub-Foler\file.ext'; $stringPieces = explode("\\", $string); $string = end($stringPieces); echo $string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i1du4
function name:  (null)
number of ops:  12
compiled vars:  !0 = $string, !1 = $stringPieces
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'C%3A%5CFolder%5CSub-Foler%5Cfile.ext'
    4     1        INIT_FCALL                                                   'explode'
          2        SEND_VAL                                                     '%5C'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $3      
          5        ASSIGN                                                       !1, $3
    5     6        INIT_FCALL                                                   'end'
          7        SEND_REF                                                     !1
          8        DO_ICALL                                             $5      
          9        ASSIGN                                                       !0, $5
    6    10        ECHO                                                         !0
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
200.34 ms | 3259 KiB | 15 Q