3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(str_replace(' ', '-', preg_replace("([^\w\s\d\-_~,;:\[\]\(\].]|[\.]{2,})", '', 'my awesome title'))); //var_dump(sys_get_temp_dir());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UTjoY
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '+'
          3        SEND_VAL                                                 '-'
          4        INIT_FCALL                                               'preg_replace'
          5        SEND_VAL                                                 '%28%5B%5E%5Cw%5Cs%5Cd%5C-_%7E%2C%3B%3A%5C%5B%5C%5D%5C%28%5C%5D.%5D%7C%5B%5C.%5D%7B2%2C%7D%29'
          6        SEND_VAL                                                 ''
          7        SEND_VAL                                                 'my+awesome+title'
          8        DO_ICALL                                         $0      
          9        SEND_VAR                                                 $0
         10        DO_ICALL                                         $1      
         11        SEND_VAR                                                 $1
         12        DO_ICALL                                                 
    5    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.81 ms | 1398 KiB | 19 Q