3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "http://fr.topman.com/wcsstore/TopManFR/images/catalog/66B01XMUL_thumb.jpg"; //$a = explode("/",$s); $r = substr($s ,strripos($s,"/")); var_dump($r); //var_dump(stristr($s,"/",false)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3mh53
function name:  (null)
number of ops:  14
compiled vars:  !0 = $s, !1 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Ffr.topman.com%2Fwcsstore%2FTopManFR%2Fimages%2Fcatalog%2F66B01XMUL_thumb.jpg'
    6     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        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !1, $4
    7    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
   11    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.08 ms | 1398 KiB | 19 Q