3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "efpinezf'àçhfnds__+-"; $sep = '-'; $regexp = '/[^a-z0-9-_]+/i'; $res = preg_replace($regexp, $sep, $s);var_dump(trim($res));

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZjSVo
function name:  (null)
number of ops:  16
compiled vars:  !0 = $s, !1 = $sep, !2 = $regexp, !3 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'efpinezf%27%C3%A0%C3%A7hfnds__%2B-'
    4     1        ASSIGN                                                   !1, '-'
    5     2        ASSIGN                                                   !2, '%2F%5B%5Ea-z0-9-_%5D%2B%2Fi'
    7     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !2
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !3, $7
          9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'trim'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                         $9      
         13        SEND_VAR                                                 $9
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.02 ms | 1394 KiB | 19 Q