3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = 'language.config.fr.settings'; $prefix = 'language.config.*.'; print preg_replace('!^'. preg_quote($prefix, '!') . '(.+)!', '\1', $name);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j1UqL
function name:  (null)
number of ops:  15
compiled vars:  !0 = $name, !1 = $prefix
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'language.config.fr.settings'
    3     1        ASSIGN                                                   !1, 'language.config.%2A.'
    4     2        INIT_FCALL                                               'preg_replace'
          3        INIT_FCALL                                               'preg_quote'
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 '%21'
          6        DO_ICALL                                         $4      
          7        CONCAT                                           ~5      '%21%5E', $4
          8        CONCAT                                           ~6      ~5, '%28.%2B%29%21'
          9        SEND_VAL                                                 ~6
         10        SEND_VAL                                                 '%5C1'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $7      
         13        ECHO                                                     $7
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.81 ms | 1394 KiB | 17 Q