3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'hey'; $a = preg_replace('/\([0-9A-Za-z]+\)/', '', $a); var_dump($a); $a = '12hey35'; $a = preg_replace('/\([0-9A-Za-z]+\)/', '', $a); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KbKc8
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'hey'
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5C%28%5B0-9A-Za-z%5D%2B%5C%29%2F'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    5     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    6    10        ASSIGN                                                   !0, '12hey35'
    7    11        INIT_FCALL                                               'preg_replace'
         12        SEND_VAL                                                 '%2F%5C%28%5B0-9A-Za-z%5D%2B%5C%29%2F'
         13        SEND_VAL                                                 ''
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $6      
         16        ASSIGN                                                   !0, $6
    8    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
200.29 ms | 1399 KiB | 17 Q