3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VEEIW
function name:  (null)
number of ops:  43
compiled vars:  !0 = $json, !1 = $data, !2 = $fp, !3 = $csvArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5B%7B%22macAddress%22%3A%22xx%3Axx%3Axx%3Axx%3Axx%3Axx%22%2C%22lastData%22%3A%7B%22dateutc%22%3A1595258880000%2C%22tempinf%22%3A74.3%2C%22humidityin%22%3A44%2C%22baromrelin%22%3A29.929%2C%22baromabsin%22%3A29.235%2C%22tempf%22%3A85.5%2C%22battout%22%3A1%2C%22humidity%22%3A62%2C%22winddir%22%3A167%2C%22windspeedmph%22%3A0.2%2C%22windgustmph%22%3A1.1%2C%22maxdailygust%22%3A9.2%2C%22hourlyrainin%22%3A0%2C%22eventrainin%22%3A0%2C%22dailyrainin%22%3A0%2C%22weeklyrainin%22%3A0%2C%22monthlyrainin%22%3A0.571%2C%22totalrainin%22%3A1.823%2C%22solarradiation%22%3A832.38%2C%22uv%22%3A8%2C%22feelsLike%22%3A90.84%2C%22dewPoint%22%3A70.96%2C%22feelsLikein%22%3A73.5%2C%22dewPointin%22%3A51%2C%22tz%22%3A%22America%2FChicago%22%2C%22date%22%3A%222020-07-20T15%3A28%3A00.000Z%22%7D%2C%22info%22%3A%7B%22name%22%3A%22My+Weather+Station%22%2C%22coords%22%3A%7B%22coords%22%3A%7B%22lon%22%3A134.65635809999999%2C%22lat%22%3A32.6587316%7D%2C%22address%22%3A%22100+Park+Lane%2C+Yourtown%2C+TN+77777%2C+USA%22%2C%22location%22%3A%22Yourtown%22%2C%22elevation%22%3A146.7066497802734%2C%22geo%22%3A%7B%22type%22%3A%22Point%22%2C%22coordinates%22%3A%5B134.65635809999999%2C32.6587316%5D%7D%7D%7D%7D%5D'
    5     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    7     6        INIT_FCALL                                               'fopen'
          7        SEND_VAL                                                 'php%3A%2F%2Fmemory'
          8        SEND_VAL                                                 'w%2B'
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !2, $7
   25    11        INIT_FCALL                                               'getflatarray'
         12        INIT_FCALL                                               'array_pop'
         13        SEND_REF                                                 !1
         14        DO_ICALL                                         $9      
         15        SEND_VAR                                                 $9
         16        DO_FCALL                                      0  $10     
         17        ASSIGN                                                   !3, $10
   27    18        INIT_FCALL                                               'fputcsv'
         19        SEND_VAR                                                 !2
         20        INIT_FCALL                                               'array_keys'
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                         $12     
         23        SEND_VAR                                                 $12
         24        DO_ICALL                                                 
   28    25        INIT_FCALL                                               'fputcsv'
         26        SEND_VAR                                                 !2
         27        SEND_VAR                                                 !3
         28        DO_ICALL                                                 
   31    29        INIT_FCALL                                               'rewind'
         30        SEND_VAR                                                 !2
         31        DO_ICALL                                                 
   32    32        INIT_FCALL                                               'var_dump'
         33        INIT_FCALL                                               'fread'
         34        SEND_VAR                                                 !2
         35        SEND_VAL                                                 1024
         36        DO_ICALL                                         $16     
         37        SEND_VAR                                                 $16
         38        DO_ICALL                                                 
   34    39        INIT_FCALL                                               'fclose'
         40        SEND_VAR                                                 !2
         41        DO_ICALL                                                 
         42      > RETURN                                                   1

Function getflatarray:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 21
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 21
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/VEEIW
function name:  getFlatArray
number of ops:  24
compiled vars:  !0 = $data, !1 = $keyPrefix, !2 = $result, !3 = $value, !4 = $key, !5 = $newKey
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      ''
   10     2        ASSIGN                                                   !2, <array>
   12     3      > FE_RESET_R                                       $7      !0, ->21
          4    > > FE_FETCH_R                                       ~8      $7, !3, ->21
          5    >   ASSIGN                                                   !4, ~8
   13     6        CONCAT                                           ~10     !1, !4
          7        ASSIGN                                                   !5, ~10
   15     8        TYPE_CHECK                                  128  ~12     !3
          9        BOOL_NOT                                         ~13     ~12
         10      > JMPZ                                                     ~13, ->14
   16    11    >   ASSIGN_DIM                                               !2, !5
         12        OP_DATA                                                  !3
   15    13      > JMP                                                      ->20
   18    14    >   INIT_FCALL_BY_NAME                                       'getFlatArray'
         15        SEND_VAR_EX                                              !3
         16        CONCAT                                           ~15     !5, '-'
         17        SEND_VAL_EX                                              ~15
         18        DO_FCALL                                      0  $16     
         19        ASSIGN_OP                                     1          !2, $16
   12    20    > > JMP                                                      ->4
         21    >   FE_FREE                                                  $7
   22    22      > RETURN                                                   !2
   23    23*     > RETURN                                                   null

End of function getflatarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
233.32 ms | 983 KiB | 23 Q