3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '/var/www/vb/frontend/web/img/up/bf9b12de5ea78cecacd3dde69f2a72f8/140/5982aff2432c4e1847306300b0bd7622/19/s.jpg'; var_dump(preg_match('/^(.*)\/img\/up\/(.*)\.jpg$/i', $s, $matches), $matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CRlYM
function name:  (null)
number of ops:  11
compiled vars:  !0 = $s, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2Fvar%2Fwww%2Fvb%2Ffrontend%2Fweb%2Fimg%2Fup%2Fbf9b12de5ea78cecacd3dde69f2a72f8%2F140%2F5982aff2432c4e1847306300b0bd7622%2F19%2Fs.jpg'
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%2F%5E%28.%2A%29%5C%2Fimg%5C%2Fup%5C%2F%28.%2A%29%5C.jpg%24%2Fi'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.33 ms | 1394 KiB | 17 Q