3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "ASDASDAS"; $pattern = '/[^a-zA-Z0-9]/'; $replace = ''; var_dump(preg_replace($pattern, $replace, $subject));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G9NAj
function name:  (null)
number of ops:  12
compiled vars:  !0 = $subject, !1 = $pattern, !2 = $replace
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'ASDASDAS'
    3     1        ASSIGN                                                   !1, '%2F%5B%5Ea-zA-Z0-9%5D%2F'
    4     2        ASSIGN                                                   !2, ''
    6     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'preg_replace'
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !2
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.76 ms | 1394 KiB | 17 Q