3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace('#[^A-Za-z0-9\-_]#', '-', "The[quick^brown_fox jumps]over the lazy dog."); echo "\n\n"; echo preg_replace('#[^A-z0-9\-_]#', '-', "The[quick^brown_fox jumps]over the lazy dog.");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i5v1k
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%23%5B%5EA-Za-z0-9%5C-_%5D%23'
          2        SEND_VAL                                                 '-'
          3        SEND_VAL                                                 'The%5Bquick%5Ebrown_fox+jumps%5Dover+the+lazy+dog.'
          4        DO_ICALL                                         $0      
          5        ECHO                                                     $0
    4     6        ECHO                                                     '%0A%0A'
    5     7        INIT_FCALL                                               'preg_replace'
          8        SEND_VAL                                                 '%23%5B%5EA-z0-9%5C-_%5D%23'
          9        SEND_VAL                                                 '-'
         10        SEND_VAL                                                 'The%5Bquick%5Ebrown_fox+jumps%5Dover+the+lazy+dog.'
         11        DO_ICALL                                         $1      
         12        ECHO                                                     $1
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.62 ms | 1385 KiB | 15 Q