3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = 'ahsgdjagshjdgasjdgajgsd gjagdjhagsjhgda sgdhjagsjdgajhgdjad<a href="http://short.awsubs.co/be9Vk">Solidfiles</a> jashd sha7st7atsdgasgda sgahsfd ahgsfafd<a href=https://link.safelinkconverter.com/review.php?id=aHR0cDovL2JfdC5seS8ySDdMajh3&c=1&user=61942 rel=nofollow>Zippyshare</a>'; echo preg_replace_callback('~href=[\'"]?([^\s\'"]+)[\'"]?(.*?)>(.*?)</a>~', function($m) { //var_export($m); return "<a href=\"" . base64_encode($m[1]) . "\"{$m[2]}>{$m[3]}</a>"; }, $html);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QKgt8
function name:  (null)
number of ops:  9
compiled vars:  !0 = $html
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'ahsgdjagshjdgasjdgajgsd+gjagdjhagsjhgda+sgdhjagsjdgajhgdjad%3Ca+href%3D%22http%3A%2F%2Fshort.awsubs.co%2Fbe9Vk%22%3ESolidfiles%3C%2Fa%3E+jashd+sha7st7atsdgasgda+sgahsfd+ahgsfafd%3Ca+href%3Dhttps%3A%2F%2Flink.safelinkconverter.com%2Freview.php%3Fid%3DaHR0cDovL2JfdC5seS8ySDdMajh3%26c%3D1%26user%3D61942+rel%3Dnofollow%3EZippyshare%3C%2Fa%3E'
    4     1        INIT_FCALL                                               'preg_replace_callback'
          2        SEND_VAL                                                 '%7Ehref%3D%5B%27%22%5D%3F%28%5B%5E%5Cs%27%22%5D%2B%29%5B%27%22%5D%3F%28.%2A%3F%29%3E%28.%2A%3F%29%3C%2Fa%3E%7E'
          3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
    7     4        SEND_VAL                                                 ~2
          5        SEND_VAR                                                 !0
    4     6        DO_ICALL                                         $3      
    7     7        ECHO                                                     $3
          8      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QKgt8
function name:  {closure}
number of ops:  16
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        INIT_FCALL                                               'base64_encode'
          2        FETCH_DIM_R                                      ~1      !0, 1
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                         $2      
          5        CONCAT                                           ~3      '%3Ca+href%3D%22', $2
          6        ROPE_INIT                                     5  ~7      '%22'
          7        FETCH_DIM_R                                      ~4      !0, 2
          8        ROPE_ADD                                      1  ~7      ~7, ~4
          9        ROPE_ADD                                      2  ~7      ~7, '%3E'
         10        FETCH_DIM_R                                      ~5      !0, 3
         11        ROPE_ADD                                      3  ~7      ~7, ~5
         12        ROPE_END                                      4  ~6      ~7, '%3C%2Fa%3E'
         13        CONCAT                                           ~10     ~3, ~6
         14      > RETURN                                                   ~10
    7    15*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.99 ms | 1434 KiB | 15 Q