3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('/^(s3\:\/\/[0-9A-z\-\_\.]+\@[0-9A-z\-\.]+\.com)\/(.*)\/([0-9A-z]+\.(jpg|png|jpeg|gif|bmp))$/', 's3://aqadd.com.ssrmap@s3-eu-west-1.amazonaws.com/listings/17/28/2385fd6a3c3a036c0e41eaf6c6654839.jpg', $matches); list($path, $endpoint, $directory, $filename, $ext) = $matches; var_dump($filename); var_dump($directory);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RLrA0
function name:  (null)
number of ops:  24
compiled vars:  !0 = $matches, !1 = $path, !2 = $endpoint, !3 = $directory, !4 = $filename, !5 = $ext
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2F%5E%28s3%5C%3A%5C%2F%5C%2F%5B0-9A-z%5C-%5C_%5C.%5D%2B%5C%40%5B0-9A-z%5C-%5C.%5D%2B%5C.com%29%5C%2F%28.%2A%29%5C%2F%28%5B0-9A-z%5D%2B%5C.%28jpg%7Cpng%7Cjpeg%7Cgif%7Cbmp%29%29%24%2F'
          2        SEND_VAL                                                 's3%3A%2F%2Faqadd.com.ssrmap%40s3-eu-west-1.amazonaws.com%2Flistings%2F17%2F28%2F2385fd6a3c3a036c0e41eaf6c6654839.jpg'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    4     5        QM_ASSIGN                                        ~7      !0
          6        FETCH_LIST_R                                     $8      ~7, 0
          7        ASSIGN                                                   !1, $8
          8        FETCH_LIST_R                                     $10     ~7, 1
          9        ASSIGN                                                   !2, $10
         10        FETCH_LIST_R                                     $12     ~7, 2
         11        ASSIGN                                                   !3, $12
         12        FETCH_LIST_R                                     $14     ~7, 3
         13        ASSIGN                                                   !4, $14
         14        FETCH_LIST_R                                     $16     ~7, 4
         15        ASSIGN                                                   !5, $16
         16        FREE                                                     ~7
    6    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !4
         19        DO_ICALL                                                 
    7    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.08 ms | 1395 KiB | 17 Q