3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'A string with a link: http://www.bbc.co.uk/'; $delim = preg_replace('/(http\:\/\/|https\:\/\/)([a-z0-9\.\/\?\=_]*)/i', 'URL_DELIM', $text); $parts = explode('URL_DELIM', $delim); var_dump($parts);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Nqbgo
function name:  (null)
number of ops:  16
compiled vars:  !0 = $text, !1 = $delim, !2 = $parts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'A+string+with+a+link%3A+http%3A%2F%2Fwww.bbc.co.uk%2F'
    5     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%28http%5C%3A%5C%2F%5C%2F%7Chttps%5C%3A%5C%2F%5C%2F%29%28%5Ba-z0-9%5C.%5C%2F%5C%3F%5C%3D_%5D%2A%29%2Fi'
          3        SEND_VAL                                                 'URL_DELIM'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    6     7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 'URL_DELIM'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !2, $6
    8    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.12 ms | 1394 KiB | 19 Q