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 = end($a); 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/7SVm6
function name:  (null)
number of ops:  14
compiled vars:  !0 = $s, !1 = $a, !2 = $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'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        INIT_FCALL                                               'end'
          7        SEND_REF                                                 !1
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !2, $6
    6    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
   10    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.4 ms | 1398 KiB | 19 Q