3v4l.org

run code in 500+ PHP versions simultaneously
<?php $start_date = date('Y-m-d', strtotime("-1 days")); $end_date = date('Y-m-d'); try { $rand = bin2hex(random_bytes(8)); } catch (Throwable $e) { $rand = uniqid(); } $rand = bin2hex(random_bytes(8)); $filename_output = "Omeda-activity-{$start_date}_{$end_date}_{$rand}.csv"; echo $filename_output;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 20
Branch analysis from position: 20
2 jumps found. (Code = 107) Position 1 = 21, Position 2 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s0jYo
function name:  (null)
number of ops:  41
compiled vars:  !0 = $start_date, !1 = $end_date, !2 = $rand, !3 = $e, !4 = $filename_output
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                                   'date'
          1        SEND_VAL                                                     'Y-m-d'
          2        INIT_FCALL                                                   'strtotime'
          3        SEND_VAL                                                     '-1+days'
          4        DO_ICALL                                             $5      
          5        SEND_VAR                                                     $5
          6        DO_ICALL                                             $6      
          7        ASSIGN                                                       !0, $6
    5     8        INIT_FCALL                                                   'date'
          9        SEND_VAL                                                     'Y-m-d'
         10        DO_ICALL                                             $8      
         11        ASSIGN                                                       !1, $8
    8    12        INIT_FCALL                                                   'bin2hex'
         13        INIT_FCALL                                                   'random_bytes'
         14        SEND_VAL                                                     8
         15        DO_ICALL                                             $10     
         16        SEND_VAR                                                     $10
         17        DO_ICALL                                             $11     
         18        ASSIGN                                                       !2, $11
         19      > JMP                                                          ->24
    9    20  E > > CATCH                                           last         'Throwable'
   10    21    >   INIT_FCALL                                                   'uniqid'
         22        DO_ICALL                                             $13     
         23        ASSIGN                                                       !2, $13
   12    24    >   INIT_FCALL                                                   'bin2hex'
         25        INIT_FCALL                                                   'random_bytes'
         26        SEND_VAL                                                     8
         27        DO_ICALL                                             $15     
         28        SEND_VAR                                                     $15
         29        DO_ICALL                                             $16     
         30        ASSIGN                                                       !2, $16
   13    31        ROPE_INIT                                         7  ~19     'Omeda-activity-'
         32        ROPE_ADD                                          1  ~19     ~19, !0
         33        ROPE_ADD                                          2  ~19     ~19, '_'
         34        ROPE_ADD                                          3  ~19     ~19, !1
         35        ROPE_ADD                                          4  ~19     ~19, '_'
         36        ROPE_ADD                                          5  ~19     ~19, !2
         37        ROPE_END                                          6  ~18     ~19, '.csv'
         38        ASSIGN                                                       !4, ~18
   15    39        ECHO                                                         !4
   16    40      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.32 ms | 1384 KiB | 18 Q