3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stripPath = 'public\docroot\4300-4399\computer-system-upgrade'; $directory = 'public\docroot\4300-4399\computer-system-upgrade\3.0 Outgoing Documents'; $shortpath = str_replace($stripPath, "", $directory); echo $shortpath;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KF2Iv
function name:  (null)
number of ops:  10
compiled vars:  !0 = $stripPath, !1 = $directory, !2 = $shortpath
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'public%5Cdocroot%5C4300-4399%5Ccomputer-system-upgrade'
    4     1        ASSIGN                                                   !1, 'public%5Cdocroot%5C4300-4399%5Ccomputer-system-upgrade%5C3.0+Outgoing+Documents'
    6     2        INIT_FCALL                                               'str_replace'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 ''
    7     5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $5      
    6     7        ASSIGN                                                   !2, $5
    8     8        ECHO                                                     !2
    9     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.04 ms | 1394 KiB | 15 Q