3v4l.org

run code in 500+ PHP versions simultaneously
<?php $api_link = 'https://api.drupal.org/api/drupal/8.9.x/search/'; $error = [ 'message' => 'The "path.alias_manager" service is deprecated. Use "path_alias.manager" instead. See https://drupal.org/node/3092086', ]; $formatted_error = preg_replace('!deprecated function ([^(]+)\(\)!', 'deprecated function <a target="_blank" href="' . $api_link . '\1">\1()</a>', $error['message']); $formatted_error = str_replace('\\', '\\<wbr>', $formatted_error); $formatted_error = preg_replace('!See (https://drupal.org(.\S+)).$!', 'See <a href="\1">\1<a>.', $formatted_error); print $formatted_error;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lWPio
function name:  (null)
number of ops:  16
compiled vars:  !0 = $api_link, !1 = $error, !2 = $formatted_error
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'https%3A%2F%2Fapi.drupal.org%2Fapi%2Fdrupal%2F8.9.x%2Fsearch%2F'
    4     1        ASSIGN                                                       !1, <array>
    7     2        CONCAT                                               ~5      'deprecated+function+%3Ca+target%3D%22_blank%22+href%3D%22', !0
          3        CONCAT                                               ~6      ~5, '%5C1%22%3E%5C1%28%29%3C%2Fa%3E'
          4        FETCH_DIM_R                                          ~7      !1, 'message'
          5        FRAMELESS_ICALL_3                preg_replace        ~8      '%21deprecated+function+%28%5B%5E%28%5D%2B%29%5C%28%5C%29%21', ~6
          6        OP_DATA                                                      ~7
          7        ASSIGN                                                       !2, ~8
    8     8        FRAMELESS_ICALL_3                str_replace         ~10     '%5C', '%5C%3Cwbr%3E'
          9        OP_DATA                                                      !2
         10        ASSIGN                                                       !2, ~10
    9    11        FRAMELESS_ICALL_3                preg_replace        ~12     '%21See+%28https%3A%2F%2Fdrupal.org%28.%5CS%2B%29%29.%24%21', 'See+%3Ca+href%3D%22%5C1%22%3E%5C1%3Ca%3E.'
         12        OP_DATA                                                      !2
         13        ASSIGN                                                       !2, ~12
   10    14        ECHO                                                         !2
   11    15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
152.75 ms | 1451 KiB | 8 Q