3v4l.org

run code in 300+ PHP versions simultaneously
<?php $replace = array( '/</', '/>/', '/*/', /*'/!/', '/;/', '/#/', '/(/', '/)/', '/@/', '/|/', '/[/', '/]/', '/}/', '/{/', '/$/'*/ ); $e = array_fill(0, count($replace), ''); var_dump($e); print preg_replace( $replace, $e, 'ls; ${}[]@()#!*<asdlad>' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1nFsE
function name:  (null)
number of ops:  18
compiled vars:  !0 = $replace, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   19     1        INIT_FCALL                                               'array_fill'
          2        SEND_VAL                                                 0
          3        COUNT                                            ~3      !0
          4        SEND_VAL                                                 ~3
          5        SEND_VAL                                                 ''
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
   20     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
   21    11        INIT_FCALL                                               'preg_replace'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !1
         14        SEND_VAL                                                 'ls%3B+%24%7B%7D%5B%5D%40%28%29%23%21%2A%3Casdlad%3E'
         15        DO_ICALL                                         $7      
         16        ECHO                                                     $7
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.83 ms | 1394 KiB | 19 Q