3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "https://www.facebook.com/OutfitFashionUK/photos/a.257299044407630.1073741836.245894895548045/715611908576339/?type=3&theater"; print explode($string, "/")[count(explode($string, "/")-1)];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mHCBS
function name:  (null)
number of ops:  14
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fwww.facebook.com%2FOutfitFashionUK%2Fphotos%2Fa.257299044407630.1073741836.245894895548045%2F715611908576339%2F%3Ftype%3D3%26theater'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%2F'
          4        DO_ICALL                                         $2      
          5        INIT_FCALL                                               'explode'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 '%2F'
          8        DO_ICALL                                         $3      
          9        SUB                                              ~4      $3, 1
         10        COUNT                                            ~5      ~4
         11        FETCH_DIM_R                                      ~6      $2, ~5
         12        ECHO                                                     ~6
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.21 ms | 1394 KiB | 15 Q