3v4l.org

run code in 300+ PHP versions simultaneously
<?php $needle = 'www'; $sentence = 'This www.google.com is the http://www.facebook.com website that https://www.amazon.com make me awesome'; if(preg_match('/\b(' . preg_quote($needle, '/') . '\w+)/', $sentence, $match)){ echo "<pre>"; print_r($match); echo "</pre>"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 19
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/Du1JP
function name:  (null)
number of ops:  20
compiled vars:  !0 = $needle, !1 = $sentence, !2 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'www'
    4     1        ASSIGN                                                   !1, 'This+www.google.com+is+the+http%3A%2F%2Fwww.facebook.com+website+that+https%3A%2F%2Fwww.amazon.com+make+me+awesome'
    8     2        INIT_FCALL                                               'preg_match'
          3        INIT_FCALL                                               'preg_quote'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 '%2F'
          6        DO_ICALL                                         $5      
          7        CONCAT                                           ~6      '%2F%5Cb%28', $5
          8        CONCAT                                           ~7      ~6, '%5Cw%2B%29%2F'
          9        SEND_VAL                                                 ~7
         10        SEND_VAR                                                 !1
         11        SEND_REF                                                 !2
         12        DO_ICALL                                         $8      
         13      > JMPZ                                                     $8, ->19
    9    14    >   ECHO                                                     '%3Cpre%3E'
   10    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
   11    18        ECHO                                                     '%3C%2Fpre%3E'
   12    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.88 ms | 1395 KiB | 19 Q