3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "http://google.at;davetrudes.com asdf http://www.youtube.com/user/davetrudes http://code.google.com/u/dave.trudes/"; $match = null; preg_match_all('/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+/', $string, $match); var_dump($match);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/36qtY
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fgoogle.at%3Bdavetrudes.com%0Aasdf%0Ahttp%3A%2F%2Fwww.youtube.com%2Fuser%2Fdavetrudes%0Ahttp%3A%2F%2Fcode.google.com%2Fu%2Fdave.trudes%2F'
    7     1        ASSIGN                                                   !1, null
    8     2        INIT_FCALL                                               'preg_match_all'
          3        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'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        DO_ICALL                                                 
    9     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.15 ms | 1385 KiB | 17 Q