3v4l.org

run code in 500+ 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:  6
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        FRAMELESS_ICALL_3                preg_replace        ~4      !1, 'https%3A%2F%2Fv2ex.com%2F%241.gif'
          3        OP_DATA                                                      !0
          4        ECHO                                                         ~4
          5      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.9 ms | 2614 KiB | 15 Q