3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = 'abc|;:d.^*+?$efg'; $str = preg_replace('/[\|;:\.\^\*\+\?\$]/', '', $str); var_dump($str === 'abcdefg');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hI7ed
function name:  (null)
number of ops:  9
compiled vars:  !0 = $str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'abc%7C%3B%3Ad.%5E%2A%2B%3F%24efg'
    4     1        FRAMELESS_ICALL_3                preg_replace        ~2      '%2F%5B%5C%7C%3B%3A%5C.%5C%5E%5C%2A%5C%2B%5C%3F%5C%24%5D%2F', ''
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !0, ~2
    5     4        INIT_FCALL                                                   'var_dump'
          5        IS_IDENTICAL                                         ~4      !0, 'abcdefg'
          6        SEND_VAL                                                     ~4
          7        DO_ICALL                                                     
          8      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
211.72 ms | 2894 KiB | 14 Q