3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "http://st.mngbcn.com/rcs/pics/static/T7/fotos/S1/73640031_OW.jpg"; $t = preg_match('/[0-9]*/i', '73640031_OW.jpg', $result); var_dump(basename($result)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bp6rS
function name:  (null)
number of ops:  14
compiled vars:  !0 = $s, !1 = $t, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fst.mngbcn.com%2Frcs%2Fpics%2Fstatic%2FT7%2Ffotos%2FS1%2F73640031_OW.jpg'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5B0-9%5D%2A%2Fi'
          3        SEND_VAL                                                 '73640031_OW.jpg'
          4        SEND_REF                                                 !2
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    6     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'basename'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                                 
    9    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.3 ms | 1394 KiB | 19 Q