3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.dendaspelletjes.nl'; $url = preg_replace('#^https?://#', '', $url); $url = preg_replace('#/(.*)#', '', $url); $url = preg_replace('#^www\.#', '', $url); echo $url;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iOLhu
function name:  (null)
number of ops:  21
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.dendaspelletjes.nl'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%23%5Ehttps%3F%3A%2F%2F%23'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    4     7        INIT_FCALL                                               'preg_replace'
          8        SEND_VAL                                                 '%23%2F%28.%2A%29%23'
          9        SEND_VAL                                                 ''
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        ASSIGN                                                   !0, $4
    5    13        INIT_FCALL                                               'preg_replace'
         14        SEND_VAL                                                 '%23%5Ewww%5C.%23'
         15        SEND_VAL                                                 ''
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $6      
         18        ASSIGN                                                   !0, $6
    7    19        ECHO                                                     !0
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.87 ms | 1386 KiB | 15 Q