3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = "/(\w|\.|\-)+:\/\/(\w|\.|\-)+(\/[^\s]*)?/"; $subject = "z39.50r://8.1.6.8/test.php?alkj view-source://test-v.com/test^alk soap.beep://testing21/351ads fftp://"; preg_match($pattern, $subject, $matches); echo "<pre>" . print_r($matches) . "</pre>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hZWNR
function name:  (null)
number of ops:  14
compiled vars:  !0 = $pattern, !1 = $subject, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2F%28%5Cw%7C%5C.%7C%5C-%29%2B%3A%5C%2F%5C%2F%28%5Cw%7C%5C.%7C%5C-%29%2B%28%5C%2F%5B%5E%5Cs%5D%2A%29%3F%2F'
    3     1        ASSIGN                                                   !1, 'z39.50r%3A%2F%2F8.1.6.8%2Ftest.php%3Falkj+%0Aview-source%3A%2F%2Ftest-v.com%2Ftest%5Ealk%0Asoap.beep%3A%2F%2Ftesting21%2F351ads+%0Afftp%3A%2F%2F'
    7     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    8     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $6      
         10        CONCAT                                           ~7      '%3Cpre%3E', $6
         11        CONCAT                                           ~8      ~7, '%3C%2Fpre%3E'
         12        ECHO                                                     ~8
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.57 ms | 1394 KiB | 17 Q