3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "meno go you to from"; $regexoo = array('to','go'); $text =str_replace($regexoo, '***', $url); echo $text; echo "<hr><br>"; $str = "first بل baseball for all"; $pattern = array('/\b(بل|all|first)\b/i',); $str = preg_replace($pattern, "FOUND", $str); echo $str; ?> <p><hr></p> <?php $atag ="على ذهب الى من طول فى يشسيشيشي مصطفى حسني where then"; $pattern = array('/\b(then|فى|على|من||طول|where)\b/i',); $atag = preg_replace($pattern, " ", $atag ); echo $atag ;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IIg30
function name:  (null)
number of ops:  30
compiled vars:  !0 = $url, !1 = $regexoo, !2 = $text, !3 = $str, !4 = $pattern, !5 = $atag
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'meno+go+you+to+from'
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'str_replace'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 '%2A%2A%2A'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $8      
          7        ASSIGN                                                   !2, $8
    6     8        ECHO                                                     !2
    8     9        ECHO                                                     '%3Chr%3E%3Cbr%3E'
   10    10        ASSIGN                                                   !3, 'first+%D8%A8%D9%84+baseball+for+all'
   11    11        ASSIGN                                                   !4, <array>
   12    12        INIT_FCALL                                               'preg_replace'
         13        SEND_VAR                                                 !4
         14        SEND_VAL                                                 'FOUND'
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                         $12     
         17        ASSIGN                                                   !3, $12
   14    18        ECHO                                                     !3
   16    19        ECHO                                                     '%3Cp%3E%3Chr%3E%3C%2Fp%3E%0A'
   19    20        ASSIGN                                                   !5, '%D8%B9%D9%84%D9%89+%D8%B0%D9%87%D8%A8+%D8%A7%D9%84%D9%89+%D9%85%D9%86+%D8%B7%D9%88%D9%84+%D9%81%D9%89+%D9%8A%D8%B4%D8%B3%D9%8A%D8%B4%D9%8A%D8%B4%D9%8A+%D9%85%D8%B5%D8%B7%D9%81%D9%89+%D8%AD%D8%B3%D9%86%D9%8A+where+then'
   20    21        ASSIGN                                                   !4, <array>
   21    22        INIT_FCALL                                               'preg_replace'
         23        SEND_VAR                                                 !4
         24        SEND_VAL                                                 '+'
         25        SEND_VAR                                                 !5
         26        DO_ICALL                                         $16     
         27        ASSIGN                                                   !5, $16
   22    28        ECHO                                                     !5
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.39 ms | 1388 KiB | 17 Q