3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename = 'videos_background-150x150.png'; if(preg_match('/^(.+[0-9]+.[0-9]+\.(png|gif|jpe?g)\.?(webp)?)$/‌', $filename)) { echo "FOUND:" . $filename . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/pXQUE
function name:  (null)
number of ops:  10
compiled vars:  !0 = $filename
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'videos_background-150x150.png'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%28.%2B%5B0-9%5D%2B.%5B0-9%5D%2B%5C.%28png%7Cgif%7Cjpe%3Fg%29%5C.%3F%28webp%29%3F%29%24%2F%E2%80%8C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5      > JMPZ                                                     $2, ->9
    5     6    >   CONCAT                                           ~3      'FOUND%3A', !0
          7        CONCAT                                           ~4      ~3, '%0A'
          8        ECHO                                                     ~4
    6     9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.33 ms | 1009 KiB | 14 Q