3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = 'Test. a-string_with+stuff%20in 5% spots'; echo preg_replace( '/[^A-Za-z0-9\-\_ ]/', '', urldecode( $value ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nLQep
function name:  (null)
number of ops:  11
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Test.+a-string_with%2Bstuff%2520in+5%25+spots'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5B%5EA-Za-z0-9%5C-%5C_+%5D%2F'
          3        SEND_VAL                                                 ''
          4        INIT_FCALL                                               'urldecode'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                         $3      
          9        ECHO                                                     $3
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.13 ms | 1385 KiB | 17 Q