3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = array(); $value = '#123ff;'; $value = preg_replace('/&#(\d+);?/me', "chr('\\1')", $value); echo $value;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SLE9K
function name:  (null)
number of ops:  10
compiled vars:  !0 = $matches, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, '%23123ff%3B'
    4     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2F%26%23%28%5Cd%2B%29%3B%3F%2Fme'
          4        SEND_VAL                                                 'chr%28%27%5C1%27%29'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    5     8        ECHO                                                     !1
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.39 ms | 1394 KiB | 15 Q