3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.webpage.ee/xxx-galerii/event-02-02-13'; sscanf(parse_url($url, PHP_URL_PATH), '/%[^-]', $prefix); echo $prefix;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0EP9V
function name:  (null)
number of ops:  12
compiled vars:  !0 = $url, !1 = $prefix
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.webpage.ee%2Fxxx-galerii%2Fevent-02-02-13'
    5     1        INIT_FCALL                                               'sscanf'
          2        INIT_FCALL                                               'parse_url'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 5
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        SEND_VAL                                                 '%2F%25%5B%5E-%5D'
          8        SEND_REF                                                 !1
          9        DO_ICALL                                                 
    6    10        ECHO                                                     !1
    7    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.73 ms | 1004 KiB | 15 Q