3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ( empty($dir) ) $dir = my_get_temp_dir(); $filename = basename($filename); if ( empty($filename) ) $filename = time(); $filename = preg_replace('|\..*$|', '.tmp', $filename); $filename = $dir . wp_unique_filename($dir, $filename); touch($filename);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 5
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 5
filename:       /in/QtUOu
function name:  (null)
number of ops:  30
compiled vars:  !0 = $dir, !1 = $filename
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ISSET_ISEMPTY_CV                                         !0
          1      > JMPZ                                                     ~2, ->5
    3     2    >   INIT_FCALL_BY_NAME                                       'my_get_temp_dir'
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !0, $3
    4     5    >   INIT_FCALL                                               'basename'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    5     9        ISSET_ISEMPTY_CV                                         !1
         10      > JMPZ                                                     ~7, ->14
    6    11    >   INIT_FCALL                                               'time'
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !1, $8
    8    14    >   INIT_FCALL                                               'preg_replace'
         15        SEND_VAL                                                 '%7C%5C..%2A%24%7C'
         16        SEND_VAL                                                 '.tmp'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $10     
         19        ASSIGN                                                   !1, $10
   10    20        INIT_FCALL_BY_NAME                                       'wp_unique_filename'
         21        SEND_VAR_EX                                              !0
         22        SEND_VAR_EX                                              !1
         23        DO_FCALL                                      0  $12     
         24        CONCAT                                           ~13     !0, $12
         25        ASSIGN                                                   !1, ~13
   11    26        INIT_FCALL                                               'touch'
         27        SEND_VAR                                                 !1
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.15 ms | 1396 KiB | 21 Q