3v4l.org

run code in 300+ 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:  25
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        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%21deprecated+function+%28%5B%5E%28%5D%2B%29%5C%28%5C%29%21'
          4        CONCAT                                           ~5      'deprecated+function+%3Ca+target%3D%22_blank%22+href%3D%22', !0
          5        CONCAT                                           ~6      ~5, '%5C1%22%3E%5C1%28%29%3C%2Fa%3E'
          6        SEND_VAL                                                 ~6
          7        FETCH_DIM_R                                      ~7      !1, 'message'
          8        SEND_VAL                                                 ~7
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
    8    11        INIT_FCALL                                               'str_replace'
         12        SEND_VAL                                                 '%5C'
         13        SEND_VAL                                                 '%5C%3Cwbr%3E'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $10     
         16        ASSIGN                                                   !2, $10
    9    17        INIT_FCALL                                               'preg_replace'
         18        SEND_VAL                                                 '%21See+%28https%3A%2F%2Fdrupal.org%28.%5CS%2B%29%29.%24%21'
         19        SEND_VAL                                                 'See+%3Ca+href%3D%22%5C1%22%3E%5C1%3Ca%3E.'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $12     
         22        ASSIGN                                                   !2, $12
   10    23        ECHO                                                     !2
   11    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.22 ms | 1400 KiB | 17 Q