3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '<a href="http://externalsite.com">external site</a>'; if ( ! preg_match_all( "/(<a.*>)(.*)(<\/a>)/ismU", $content, $outbound_links, PREG_SET_ORDER ) ) { return $content; } var_dump( $outbound_links );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bhGWB
function name:  (null)
number of ops:  14
compiled vars:  !0 = $content, !1 = $outbound_links
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Ca+href%3D%22http%3A%2F%2Fexternalsite.com%22%3Eexternal+site%3C%2Fa%3E'
    5     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%28%3Ca.%2A%3E%29%28.%2A%29%28%3C%5C%2Fa%3E%29%2FismU'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 2
          6        DO_ICALL                                         $3      
          7        BOOL_NOT                                         ~4      $3
          8      > JMPZ                                                     ~4, ->10
    6     9    > > RETURN                                                   !0
    9    10    >   INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.2 ms | 1394 KiB | 17 Q