3v4l.org

run code in 300+ PHP versions simultaneously
<?php $message = 'hello! world. Please visit my site: http://hello.world.com.'; $message = preg_replace('/(?<=^|\s)hello\b/', '<a id="get-ahead-link" style="color: #ffa503;" href="https://somelink.com">hello</a>', $message, -1, $count); echo $message;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SknUT
function name:  (null)
number of ops:  11
compiled vars:  !0 = $message, !1 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'hello%21+world.+Please+visit+my+site%3A+http%3A%2F%2Fhello.world.com.'
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%28%3F%3C%3D%5E%7C%5Cs%29hello%5Cb%2F'
          3        SEND_VAL                                                 '%3Ca+id%3D%22get-ahead-link%22+style%3D%22color%3A+%23ffa503%3B%22+href%3D%22https%3A%2F%2Fsomelink.com%22%3Ehello%3C%2Fa%3E'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 -1
          6        SEND_REF                                                 !1
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !0, $3
    6     9        ECHO                                                     !0
    7    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144 ms | 1003 KiB | 14 Q