3v4l.org

run code in 300+ 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:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%2F%5C%2F%2F'
          2        SEND_VAL                                                 '%5C%5C'
          3        SEND_VAL                                                 'Using+4+slashes%3A+a+%2F+b%0A'
          4        DO_ICALL                                         $0      
          5        ECHO                                                     $0
    4     6        INIT_FCALL                                               'preg_replace'
          7        SEND_VAL                                                 '%2F%5C%2F%2F'
          8        SEND_VAL                                                 '%5C%5C%5C%5C'
          9        SEND_VAL                                                 'Using+8+slashes%3A+a+%2F+b%0A'
         10        DO_ICALL                                         $1      
         11        ECHO                                                     $1
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.31 ms | 1394 KiB | 15 Q