3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "http://media.topman.com/wcsstore/TopMan/images/catalog/97C08EBLK_normal.jpg"; $image_id = substr($s, strripos($s,"/")+1); var_dump($image_id); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/igSHJ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $s, !1 = $image_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fmedia.topman.com%2Fwcsstore%2FTopMan%2Fimages%2Fcatalog%2F97C08EBLK_normal.jpg'
    4     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        INIT_FCALL                                               'strripos'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 '%2F'
          6        DO_ICALL                                         $3      
          7        ADD                                              ~4      $3, 1
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
    5    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
    8    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.31 ms | 1394 KiB | 19 Q