3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "[em_08]"; $preg = "/\[em_(\d+)\]/i"; echo preg_replace($preg, "https://v2ex.com/$1.gif", $text);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eXmdh
function name:  (null)
number of ops:  9
compiled vars:  !0 = $text, !1 = $preg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5Bem_08%5D'
    5     1        ASSIGN                                                   !1, '%2F%5C%5Bem_%28%5Cd%2B%29%5C%5D%2Fi'
    6     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 'https%3A%2F%2Fv2ex.com%2F%241.gif'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ECHO                                                     $4
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.33 ms | 1394 KiB | 15 Q