3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/^http:\/\/(.+).local.master.1ff.space\/$/m'; $str = 'http://usa.yorketo.diet.local.master.1ff.space'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); // Print the entire match result echo $matches[0][1] ?? 'NotFound';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D7cl5
function name:  (null)
number of ops:  15
compiled vars:  !0 = $re, !1 = $str, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%5Ehttp%3A%5C%2F%5C%2F%28.%2B%29.local.master.1ff.space%5C%2F%24%2Fm'
    4     1        ASSIGN                                                   !1, 'http%3A%2F%2Fusa.yorketo.diet.local.master.1ff.space'
    6     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        SEND_VAL                                                 2
          7        SEND_VAL                                                 0
          8        DO_ICALL                                                 
    9     9        FETCH_DIM_IS                                     ~6      !2, 0
         10        FETCH_DIM_IS                                     ~7      ~6, 1
         11        COALESCE                                         ~8      ~7
         12        QM_ASSIGN                                        ~8      'NotFound'
         13        ECHO                                                     ~8
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.88 ms | 1398 KiB | 15 Q