3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('DS', DIRECTORY_SEPARATOR); $str = 'template/base/files/js\jquery1.11.min.js'; $str = str_replace($str, array('\\', '/'), DS); echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XK2qM
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'DS'
          2        SEND_VAL                                                 '%2F'
          3        DO_ICALL                                                 
    3     4        ASSIGN                                                   !0, 'template%2Fbase%2Ffiles%2Fjs%5Cjquery1.11.min.js'
    4     5        INIT_FCALL                                               'str_replace'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 <array>
          8        FETCH_CONSTANT                                   ~3      'DS'
          9        SEND_VAL                                                 ~3
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !0, $4
    5    12        ECHO                                                     !0
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.34 ms | 1398 KiB | 17 Q