3v4l.org

run code in 300+ PHP versions simultaneously
<?php # Save the audio to a URL-accessible directory for playback. parse_str($_SERVER['QUERY_STRING'], $params); $str = 'randomtype'; $file_name = md5($str); $name = isset($params['fileName']) ? $params['fileName'] : $file_name + 'randomtype.mp3'; $content = file_get_contents('php://input'); $fh = fopen($name, 'w') or die("can't open file"); fwrite($fh, $content); fclose($fh); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 47) Position 1 = 29, Position 2 = 31
Branch analysis from position: 29
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 47) Position 1 = 29, Position 2 = 31
Branch analysis from position: 29
Branch analysis from position: 31
filename:       /in/qGBRj
function name:  (null)
number of ops:  39
compiled vars:  !0 = $params, !1 = $str, !2 = $file_name, !3 = $name, !4 = $content, !5 = $fh
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'parse_str'
          1        FETCH_R                      global              ~6      '_SERVER'
          2        FETCH_DIM_R                                      ~7      ~6, 'QUERY_STRING'
          3        SEND_VAL                                                 ~7
          4        SEND_REF                                                 !0
          5        DO_ICALL                                                 
    4     6        ASSIGN                                                   !1, 'randomtype'
    5     7        INIT_FCALL                                               'md5'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $10     
         10        ASSIGN                                                   !2, $10
    6    11        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'fileName'
         12      > JMPZ                                                     ~12, ->16
         13    >   FETCH_DIM_R                                      ~13     !0, 'fileName'
         14        QM_ASSIGN                                        ~14     ~13
         15      > JMP                                                      ->18
         16    >   ADD                                              ~15     !2, 'randomtype.mp3'
         17        QM_ASSIGN                                        ~14     ~15
         18    >   ASSIGN                                                   !3, ~14
    7    19        INIT_FCALL                                               'file_get_contents'
         20        SEND_VAL                                                 'php%3A%2F%2Finput'
         21        DO_ICALL                                         $17     
         22        ASSIGN                                                   !4, $17
    8    23        INIT_FCALL                                               'fopen'
         24        SEND_VAR                                                 !3
         25        SEND_VAL                                                 'w'
         26        DO_ICALL                                         $19     
         27        ASSIGN                                           ~20     !5, $19
         28      > JMPNZ_EX                                         ~20     ~20, ->31
         29    > > EXIT                                                     'can%27t+open+file'
         30*       BOOL                                             ~20     <true>
    9    31    >   INIT_FCALL                                               'fwrite'
         32        SEND_VAR                                                 !5
         33        SEND_VAR                                                 !4
         34        DO_ICALL                                                 
   10    35        INIT_FCALL                                               'fclose'
         36        SEND_VAR                                                 !5
         37        DO_ICALL                                                 
   11    38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.22 ms | 1400 KiB | 25 Q