3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $domain = "stackoverflow.com"; $uriToTest = "http://stackoverflow.com/"; $pattern = "/^http(s)?:\//(([a-z]+)\.)*".$domain."/"; echo preg_match($pattern, $uriToTest);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FY3ff
function name:  (null)
number of ops:  11
compiled vars:  !0 = $domain, !1 = $uriToTest, !2 = $pattern
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'stackoverflow.com'
    5     1        ASSIGN                                                   !1, 'http%3A%2F%2Fstackoverflow.com%2F'
    7     2        CONCAT                                           ~5      '%2F%5Ehttp%28s%29%3F%3A%5C%2F%2F%28%28%5Ba-z%5D%2B%29%5C.%29%2A', !0
          3        CONCAT                                           ~6      ~5, '%2F'
          4        ASSIGN                                                   !2, ~6
    9     5        INIT_FCALL                                               'preg_match'
          6        SEND_VAR                                                 !2
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $8      
          9        ECHO                                                     $8
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.81 ms | 1394 KiB | 15 Q