3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "https://rumble.com/v30sqt-oreo-ice-cream-cake.html"; $parsed_arr = explode("-",ltrim(parse_url($url, PHP_URL_PATH),"/")); echo current($parsed_arr)."\n"; echo $parsed_arr[0]."\n"; print_r($parsed_arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r8WCH
function name:  (null)
number of ops:  26
compiled vars:  !0 = $url, !1 = $parsed_arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Frumble.com%2Fv30sqt-oreo-ice-cream-cake.html'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '-'
          3        INIT_FCALL                                               'ltrim'
          4        INIT_FCALL                                               'parse_url'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 5
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        SEND_VAL                                                 '%2F'
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !1, $5
    5    14        INIT_FCALL                                               'current'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $7      
         17        CONCAT                                           ~8      $7, '%0A'
         18        ECHO                                                     ~8
    6    19        FETCH_DIM_R                                      ~9      !1, 0
         20        CONCAT                                           ~10     ~9, '%0A'
         21        ECHO                                                     ~10
    7    22        INIT_FCALL                                               'print_r'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.85 ms | 1015 KiB | 18 Q