3v4l.org

run code in 300+ PHP versions simultaneously
<?php $conf['dl_url'] = 'http://droidphp-repository.herokuapp.com/'; $conf['data'] = '/data/data/org.opendroidphp/'; $conf['file_system'] = '/sdcard/droidphp/'; function getFilesize($url){ $head = array_change_key_case(get_headers($url, TRUE)); return $head['content-length']; } $value[] = [ 'repo_name' => 'Components Security Fix', 'repo_url' => 'https://dl.dropboxusercontent.com/s/ldl3y1tlqodkvfs/data_heartblead_fix.zip?dl=0', 'repo_install_location' => $conf['data'], 'repo_file_size' => getFilesize('https://dl.dropboxusercontent.com/s/ldl3y1tlqodkvfs/data_heartblead_fix.zip?dl=0'), ]; file_put_contents('packages.json', json_encode($value, JSON_PRETTY_PRINT));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4uo05
function name:  (null)
number of ops:  25
compiled vars:  !0 = $conf, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 'dl_url'
          1        OP_DATA                                                  'http%3A%2F%2Fdroidphp-repository.herokuapp.com%2F'
    4     2        ASSIGN_DIM                                               !0, 'data'
          3        OP_DATA                                                  '%2Fdata%2Fdata%2Forg.opendroidphp%2F'
    5     4        ASSIGN_DIM                                               !0, 'file_system'
          5        OP_DATA                                                  '%2Fsdcard%2Fdroidphp%2F'
   13     6        INIT_ARRAY                                       ~6      'Components+Security+Fix', 'repo_name'
   14     7        ADD_ARRAY_ELEMENT                                ~6      'https%3A%2F%2Fdl.dropboxusercontent.com%2Fs%2Fldl3y1tlqodkvfs%2Fdata_heartblead_fix.zip%3Fdl%3D0', 'repo_url'
   15     8        FETCH_DIM_R                                      ~7      !0, 'data'
          9        ADD_ARRAY_ELEMENT                                ~6      ~7, 'repo_install_location'
   16    10        INIT_FCALL                                               'getfilesize'
         11        SEND_VAL                                                 'https%3A%2F%2Fdl.dropboxusercontent.com%2Fs%2Fldl3y1tlqodkvfs%2Fdata_heartblead_fix.zip%3Fdl%3D0'
         12        DO_FCALL                                      0  $8      
         13        ADD_ARRAY_ELEMENT                                ~6      $8, 'repo_file_size'
   12    14        ASSIGN_DIM                                               !1
   16    15        OP_DATA                                                  ~6
   19    16        INIT_FCALL                                               'file_put_contents'
         17        SEND_VAL                                                 'packages.json'
         18        INIT_FCALL                                               'json_encode'
         19        SEND_VAR                                                 !1
         20        SEND_VAL                                                 128
         21        DO_ICALL                                         $9      
         22        SEND_VAR                                                 $9
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Function getfilesize:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4uo05
function name:  getFilesize
number of ops:  12
compiled vars:  !0 = $url, !1 = $head
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        INIT_FCALL                                               'array_change_key_case'
          2        INIT_FCALL                                               'get_headers'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !1, $3
    9     9        FETCH_DIM_R                                      ~5      !1, 'content-length'
         10      > RETURN                                                   ~5
   10    11*     > RETURN                                                   null

End of function getfilesize

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.13 ms | 1403 KiB | 22 Q