3v4l.org

run code in 500+ PHP versions simultaneously
<?php $url = 'https://player.vimeo.com/video/322332324?byline=0'; // Get the path from the URL $path = parse_url($url, PHP_URL_PATH); // Get the everything after the last slash $numbers = substr($path, strrpos($path, '/') + 1); echo $numbers;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aRjfc
function name:  (null)
number of ops:  15
compiled vars:  !0 = $url, !1 = $path, !2 = $numbers
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F322332324%3Fbyline%3D0'
    5     1        INIT_FCALL                                                   'parse_url'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     5
          4        DO_ICALL                                             $4      
          5        ASSIGN                                                       !1, $4
    8     6        INIT_FCALL                                                   'strrpos'
          7        SEND_VAR                                                     !1
          8        SEND_VAL                                                     '%2F'
          9        DO_ICALL                                             $6      
         10        ADD                                                  ~7      $6, 1
         11        FRAMELESS_ICALL_2                substr              ~8      !1, ~7
         12        ASSIGN                                                       !2, ~8
   10    13        ECHO                                                         !2
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
176.21 ms | 2577 KiB | 15 Q