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]+)\.)*/"; $result= preg_match($pattern, $uriToTest); print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o6l0Z
function name:  (null)
number of ops:  12
compiled vars:  !0 = $domain, !1 = $uriToTest, !2 = $pattern, !3 = $result
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        ASSIGN                                                   !2, '%2F%5Ehttp%28s%29%3F%3A%5C%2F%2F%28%28%5Ba-z%5D%2B%29%5C.%29%2A%2F'
    8     3        INIT_FCALL                                               'preg_match'
          4        SEND_VAR                                                 !2
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !3, $7
    9     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !3
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.91 ms | 1394 KiB | 17 Q