3v4l.org

run code in 500+ PHP versions simultaneously
<?php $path = "path"; $files = ["web_assortment-1601974529814.csv","web_assortment-1601926309814.csv", "web_assortment-1601847963649.csv", "web_assortment-1601761563649.csv", "web_assortment-1601675163649.csv"]; foreach ($files as $filename) { $arr[date("Y-m-d", (int)((int)substr($filename, -17)/1000))] = $path . $filename; } $sFileYesterday = $arr[date("Y-m-d", time()-86400)]; $sFileToday = $arr[date("Y-m-d", time())]; var_dump($sFileYesterday, $sFileToday, $arr);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 16
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/cb4Mp
function name:  (null)
number of ops:  40
compiled vars:  !0 = $path, !1 = $files, !2 = $filename, !3 = $arr, !4 = $sFileYesterday, !5 = $sFileToday
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'path'
    4     1        ASSIGN                                                       !1, <array>
    6     2      > FE_RESET_R                                           $8      !1, ->16
          3    > > FE_FETCH_R                                                   $8, !2, ->16
    7     4    >   INIT_FCALL                                                   'date'
          5        SEND_VAL                                                     'Y-m-d'
          6        FRAMELESS_ICALL_2                substr              ~9      !2, -17
          7        CAST                                              4  ~10     ~9
          8        DIV                                                  ~11     ~10, 1000
          9        CAST                                              4  ~12     ~11
         10        SEND_VAL                                                     ~12
         11        DO_ICALL                                             $13     
         12        CONCAT                                               ~15     !0, !2
         13        ASSIGN_DIM                                                   !3, $13
         14        OP_DATA                                                      ~15
    6    15      > JMP                                                          ->3
         16    >   FE_FREE                                                      $8
   10    17        INIT_FCALL                                                   'date'
         18        SEND_VAL                                                     'Y-m-d'
         19        INIT_FCALL                                                   'time'
         20        DO_ICALL                                             $16     
         21        SUB                                                  ~17     $16, 86400
         22        SEND_VAL                                                     ~17
         23        DO_ICALL                                             $18     
         24        FETCH_DIM_R                                          ~19     !3, $18
         25        ASSIGN                                                       !4, ~19
   11    26        INIT_FCALL                                                   'date'
         27        SEND_VAL                                                     'Y-m-d'
         28        INIT_FCALL                                                   'time'
         29        DO_ICALL                                             $21     
         30        SEND_VAR                                                     $21
         31        DO_ICALL                                             $22     
         32        FETCH_DIM_R                                          ~23     !3, $22
         33        ASSIGN                                                       !5, ~23
   13    34        INIT_FCALL                                                   'var_dump'
         35        SEND_VAR                                                     !4
         36        SEND_VAR                                                     !5
         37        SEND_VAR                                                     !3
         38        DO_ICALL                                                     
         39      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.84 ms | 1421 KiB | 16 Q