3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "https://www.facebook.com/OutfitFashionUK/photos/a.257299044407630.1073741836.245894895548045/715611908576339/?type=3&theater"; print explode($string, "/")[count(explode($string, "/")-1)];
based on 9ahFr
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/mHCBS
function name:  (null)
number of ops:  16
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                                               'count'
         6        INIT_FCALL                                               'explode'
         7        SEND_VAR                                                 !0
         8        SEND_VAL                                                 '%2F'
         9        DO_ICALL                                         $3      
        10        SUB                                              ~4      $3, 1
        11        SEND_VAL                                                 ~4
        12        DO_ICALL                                         $5      
        13        FETCH_DIM_R                                      $6      $2, $5
        14        ECHO                                                     $6
        15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0