3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "http://google.at;www.davetrudes.com asdf http://www.youtube.com/user/davetrudes http://code.google.com/u/dave.trudes/"; $t = "regexbuddy.com www.regexbuddy.com http://regexbuddy.com cvc http://www.regexbuddy.com cvcv http://www.regexbuddy.com/ g http://www.regexbuddy.com/index.html f http://www.regexbuddy.com/index.html?source=library f You can download RegexBu ddy at http://www.regexbuddy.com/download.html. f 'www.domain.com/quoted URL with spaces' http://10.2.2.1.2/ttxx/txt/gg v support@regexbuddy.com"; $not = "hello world"; $match = null; preg_match('/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+/', $not, $match); var_dump($match);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SvHZG
function name:  (null)
number of ops:  13
compiled vars:  !0 = $string, !1 = $t, !2 = $not, !3 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fgoogle.at%3Bwww.davetrudes.com%0Aasdf%0Ahttp%3A%2F%2Fwww.youtube.com%2Fuser%2Fdavetrudes%0Ahttp%3A%2F%2Fcode.google.com%2Fu%2Fdave.trudes%2F'
    7     1        ASSIGN                                                   !1, 'regexbuddy.com%0Awww.regexbuddy.com%0Ahttp%3A%2F%2Fregexbuddy.com+cvc%0Ahttp%3A%2F%2Fwww.regexbuddy.com+cvcv%0Ahttp%3A%2F%2Fwww.regexbuddy.com%2F+g%0Ahttp%3A%2F%2Fwww.regexbuddy.com%2Findex.html+f%0Ahttp%3A%2F%2Fwww.regexbuddy.com%2Findex.html%3Fsource%3Dlibrary+f%0AYou+can+download+RegexBu++++ddy+at+http%3A%2F%2Fwww.regexbuddy.com%2Fdownload.html.+f%0A%27www.domain.com%2Fquoted+URL+with+spaces%27%0Ahttp%3A%2F%2F10.2.2.1.2%2Fttxx%2Ftxt%2Fgg+v%0Asupport%40regexbuddy.com'
   18     2        ASSIGN                                                   !2, 'hello+world'
   20     3        ASSIGN                                                   !3, null
   21     4        INIT_FCALL                                               'preg_match'
          5        SEND_VAL                                                 '%2F%5BA-Za-z%5D%2B%3A%5C%2F%5C%2F%5BA-Za-z0-9-_%5D%2B%5C.%5BA-Za-z0-9-_%3A%25%26%5C%3F%5C%2F.%3D%5D%2B%2F'
          6        SEND_VAR                                                 !2
          7        SEND_REF                                                 !3
          8        DO_ICALL                                                 
   22     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.29 ms | 1395 KiB | 17 Q