3v4l.org

run code in 300+ PHP versions simultaneously
<?php $icerik = '<a href="http://www.google.com" title="bu-link-google-gider" alt="deneme">Google</a>'; preg_match_all('#title="([^">]*)"#', $icerik, $out); $title_degeri = $out[1][0]; echo "Orjinal TITLE : " . $title_degeri; echo "<br>"; echo "Replace Edilmis TITLE : " . str_replace('-', ' ', $title_degeri);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LdZCH
function name:  (null)
number of ops:  20
compiled vars:  !0 = $icerik, !1 = $out, !2 = $title_degeri
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Ca+href%3D%22http%3A%2F%2Fwww.google.com%22+title%3D%22bu-link-google-gider%22+alt%3D%22deneme%22%3EGoogle%3C%2Fa%3E'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%23title%3D%22%28%5B%5E%22%3E%5D%2A%29%22%23'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    6     6        FETCH_DIM_R                                      ~5      !1, 1
          7        FETCH_DIM_R                                      ~6      ~5, 0
          8        ASSIGN                                                   !2, ~6
    8     9        CONCAT                                           ~8      'Orjinal+TITLE+%3A+', !2
         10        ECHO                                                     ~8
    9    11        ECHO                                                     '%3Cbr%3E'
   10    12        INIT_FCALL                                               'str_replace'
         13        SEND_VAL                                                 '-'
         14        SEND_VAL                                                 '+'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $9      
         17        CONCAT                                           ~10     'Replace+Edilmis+TITLE+%3A+', $9
         18        ECHO                                                     ~10
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.1 ms | 1395 KiB | 17 Q