3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = 'text text http://site.ru/bla/bla/index.html text text'; preg_replace('/http:.*?\.html/i', '<a href=\'$0\'></a>', $content); print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Km4Ah
function name:  (null)
number of ops:  10
compiled vars:  !0 = $content, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'text+text+http%3A%2F%2Fsite.ru%2Fbla%2Fbla%2Findex.html+text+text'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2Fhttp%3A.%2A%3F%5C.html%2Fi'
          3        SEND_VAL                                                 '%3Ca+href%3D%27%240%27%3E%3C%2Fa%3E'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.77 ms | 1394 KiB | 17 Q