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(stristr($image_id,'_',true)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1C41q
function name:  (null)
number of ops:  20
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        INIT_FCALL                                               'stristr'
         13        SEND_VAR                                                 !1
         14        SEND_VAL                                                 '_'
         15        SEND_VAL                                                 <true>
         16        DO_ICALL                                         $7      
         17        SEND_VAR                                                 $7
         18        DO_ICALL                                                 
    8    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.46 ms | 1395 KiB | 21 Q