3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'abcde$ddfd @abcd )der]'; echo 'Old string : '.$string.'<br />'; $newstr = preg_replace("/[^A-Za-z0-9 ]/", '', $string); echo 'New string : '.$newstr; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mQC9K
function name:  (null)
number of ops:  13
compiled vars:  !0 = $string, !1 = $newstr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'abcde%24ddfd+%40abcd+%29der%5D'
    3     1        CONCAT                                           ~3      'Old+string+%3A+', !0
          2        CONCAT                                           ~4      ~3, '%3Cbr+%2F%3E'
          3        ECHO                                                     ~4
    4     4        INIT_FCALL                                               'preg_replace'
          5        SEND_VAL                                                 '%2F%5B%5EA-Za-z0-9+%5D%2F'
          6        SEND_VAL                                                 ''
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    5    10        CONCAT                                           ~7      'New+string+%3A+', !1
         11        ECHO                                                     ~7
    6    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.79 ms | 1394 KiB | 15 Q