3v4l.org

run code in 300+ PHP versions simultaneously
<?php function normalize ($dirty) { $pattern = 'http://www.wizztube.com/wp-content/wpt_cache.*'; preg_match($pattern, $dirty, $matches); echo $matches[0]; } normalize("http://www.wizztube.com/wp-content/uploads/http://www.wizztube.com/wp-content/wpt_cache/10/638/01.jpg"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nJTfi
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'normalize'
          1        SEND_VAL                                                 'http%3A%2F%2Fwww.wizztube.com%2Fwp-content%2Fuploads%2Fhttp%3A%2F%2Fwww.wizztube.com%2Fwp-content%2Fwpt_cache%2F10%2F638%2F01.jpg'
          2        DO_FCALL                                      0          
   10     3      > RETURN                                                   1

Function normalize:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nJTfi
function name:  normalize
number of ops:  10
compiled vars:  !0 = $dirty, !1 = $pattern, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        ASSIGN                                                   !1, 'http%3A%2F%2Fwww.wizztube.com%2Fwp-content%2Fwpt_cache.%2A'
    5     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    6     7        FETCH_DIM_R                                      ~5      !2, 0
          8        ECHO                                                     ~5
    7     9      > RETURN                                                   null

End of function normalize

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.78 ms | 1012 KiB | 15 Q