3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getAnvaWordFile($path) { $prefix = 'N:\ANVAPROD\DATA\DATA1\ANVAWORD'; $filename = str_ireplace(array($prefix, '\\'), array('/mount/anvaword', '/'), $path); echo $filename; } getAnvaWordFile('/etc/passwd');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oCmFI
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'getanvawordfile'
          1        SEND_VAL                                                 '%2Fetc%2Fpasswd'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function getanvawordfile:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oCmFI
function name:  getAnvaWordFile
number of ops:  12
compiled vars:  !0 = $path, !1 = $prefix, !2 = $filename
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        ASSIGN                                                   !1, 'N%3A%5CANVAPROD%5CDATA%5CDATA1%5CANVAWORD'
    6     2        INIT_FCALL                                               'str_ireplace'
          3        INIT_ARRAY                                       ~4      !1
          4        ADD_ARRAY_ELEMENT                                ~4      '%5C'
          5        SEND_VAL                                                 ~4
          6        SEND_VAL                                                 <array>
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !2, $5
    8    10        ECHO                                                     !2
    9    11      > RETURN                                                   null

End of function getanvawordfile

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.14 ms | 1389 KiB | 16 Q