3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.sheknows.com'; $pattern = '/http:\/\/(www\.)?/'; $replace = ''; echo preg_replace($pattern, $replace, $url);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QFufI
function name:  (null)
number of ops:  10
compiled vars:  !0 = $url, !1 = $pattern, !2 = $replace
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.sheknows.com'
    3     1        ASSIGN                                                   !1, '%2Fhttp%3A%5C%2F%5C%2F%28www%5C.%29%3F%2F'
    4     2        ASSIGN                                                   !2, ''
    5     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ECHO                                                     $6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.09 ms | 1394 KiB | 15 Q