3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '{"8":"2020-06-L-1.txt","9":"2020-06-L-2.txt","10":"2020-06-L-3.txt","11":"2020-06-L-4.txt","12":"2020-06-L-5.txt","15":"2020-06-N-3.txt","16":"2020-06-N-4.txt","17":"2020-06-N-5.txt","18":"2020-06-N-6.txt","19":"2020-06-O-1.txt","20":"2020-06-O-2.txt","21":"2020-06-O-3.txt","22":"2020-06-O-4.txt","23":"2020-06-S-1.txt","24":"2020-06-S-2.txt","25":"2020-06-S-3.txt"} '; $fileArray = json_decode($s, true); $fileFilterPattern = "/....-..-L-.\.txt/"; foreach($fileArray as $k => $v) { if(!preg_match($fileFilterPattern, $v)) { unset($fileArray[$k]); } } print_r($fileArray);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 18
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 17
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/0hejr
function name:  (null)
number of ops:  23
compiled vars:  !0 = $s, !1 = $fileArray, !2 = $fileFilterPattern, !3 = $v, !4 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%228%22%3A%222020-06-L-1.txt%22%2C%229%22%3A%222020-06-L-2.txt%22%2C%2210%22%3A%222020-06-L-3.txt%22%2C%2211%22%3A%222020-06-L-4.txt%22%2C%2212%22%3A%222020-06-L-5.txt%22%2C%2215%22%3A%222020-06-N-3.txt%22%2C%2216%22%3A%222020-06-N-4.txt%22%2C%2217%22%3A%222020-06-N-5.txt%22%2C%2218%22%3A%222020-06-N-6.txt%22%2C%2219%22%3A%222020-06-O-1.txt%22%2C%2220%22%3A%222020-06-O-2.txt%22%2C%2221%22%3A%222020-06-O-3.txt%22%2C%2222%22%3A%222020-06-O-4.txt%22%2C%2223%22%3A%222020-06-S-1.txt%22%2C%2224%22%3A%222020-06-S-2.txt%22%2C%2225%22%3A%222020-06-S-3.txt%22%7D%0A%0A'
    7     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    9     6        ASSIGN                                                   !2, '%2F....-..-L-.%5C.txt%2F'
   11     7      > FE_RESET_R                                       $9      !1, ->18
          8    > > FE_FETCH_R                                       ~10     $9, !3, ->18
          9    >   ASSIGN                                                   !4, ~10
   12    10        INIT_FCALL                                               'preg_match'
         11        SEND_VAR                                                 !2
         12        SEND_VAR                                                 !3
         13        DO_ICALL                                         $12     
         14        BOOL_NOT                                         ~13     $12
         15      > JMPZ                                                     ~13, ->17
   13    16    >   UNSET_DIM                                                !1, !4
   11    17    > > JMP                                                      ->8
         18    >   FE_FREE                                                  $9
   17    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.52 ms | 1013 KiB | 16 Q