3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo preg_replace('/\//', '\\\\', "Using 4 slashes: a / b\n"); echo preg_replace('/\//', '\\\\\\\\', "Using 8 slashes: a / b\n");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oLENr
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   FRAMELESS_ICALL_3                preg_replace        ~0      '%2F%5C%2F%2F', '%5C%5C'
          1        OP_DATA                                                      'Using+4+slashes%3A+a+%2F+b%0A'
          2        ECHO                                                         ~0
    4     3        FRAMELESS_ICALL_3                preg_replace        ~1      '%2F%5C%2F%2F', '%5C%5C%5C%5C'
          4        OP_DATA                                                      'Using+8+slashes%3A+a+%2F+b%0A'
          5        ECHO                                                         ~1
          6      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.12 ms | 2399 KiB | 13 Q