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"; $nu = null; $match = null; preg_match('/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+/', $nu, $match); if ($match) { var_dump($match[0]); } else {var_dump("nothing");} var_dump($match);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rdHF5
function name:  (null)
number of ops:  23
compiled vars:  !0 = $string, !1 = $t, !2 = $not, !3 = $nu, !4 = $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'
   19     3        ASSIGN                                                   !3, null
   21     4        ASSIGN                                                   !4, null
   22     5        INIT_FCALL                                               'preg_match'
          6        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'
          7        SEND_VAR                                                 !3
          8        SEND_REF                                                 !4
          9        DO_ICALL                                                 
   23    10      > JMPZ                                                     !4, ->16
   24    11    >   INIT_FCALL                                               'var_dump'
         12        FETCH_DIM_R                                      ~11     !4, 0
         13        SEND_VAL                                                 ~11
         14        DO_ICALL                                                 
         15      > JMP                                                      ->19
   25    16    >   INIT_FCALL                                               'var_dump'
         17        SEND_VAL                                                 'nothing'
         18        DO_ICALL                                                 
   26    19    >   INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !4
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.97 ms | 1396 KiB | 17 Q