3v4l.org

run code in 300+ 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); // Explode the path on / to get the different fragments $fragments = explode('/', $path); // Now simply take the last part of the fragemnts $numbers = end($fragments); echo $numbers;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TI1El
function name:  (null)
number of ops:  17
compiled vars:  !0 = $url, !1 = $path, !2 = $fragments, !3 = $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                                         $5      
          5        ASSIGN                                                   !1, $5
    8     6        INIT_FCALL                                               'explode'
          7        SEND_VAL                                                 '%2F'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !2, $7
   11    11        INIT_FCALL                                               'end'
         12        SEND_REF                                                 !2
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !3, $9
   13    15        ECHO                                                     !3
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
282.62 ms | 1011 KiB | 16 Q