3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match( "@^(?:http://)?([^/]+)@i", "http://www.php.net/index.htrnl", $matches); $match = $matches[l]; echo $match;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4mGFo
function name:  (null)
number of ops:  10
compiled vars:  !0 = $matches, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match'
    4     1        SEND_VAL                                                 '%40%5E%28%3F%3Ahttp%3A%2F%2F%29%3F%28%5B%5E%2F%5D%2B%29%40i'
    5     2        SEND_VAL                                                 'http%3A%2F%2Fwww.php.net%2Findex.htrnl'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    6     5        FETCH_CONSTANT                                   ~3      'l'
          6        FETCH_DIM_R                                      ~4      !0, ~3
          7        ASSIGN                                                   !1, ~4
    7     8        ECHO                                                     !1
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.42 ms | 1394 KiB | 15 Q