3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contenuto = file_get_contents('http://www.mistermatic.it/api/?cc=89091203'); // echo '<pre>'.var_dump(json_decode($contenuto)).'</pre>'; $lista = json_decode($contenuto); $chiavi = array( "ad_number", "vehicle_type", "title", "sub_title", "make", "model", "version", "vehicle_class", "vehicle_category", "damaged", "first_registration_date", "mileage", "power_kw", "power_cv", "fuel_type", "color", "color_type", "price", "last_update", "description", "company_logo", "images_number" ); echo "<table border='1' cellspacing='0'>"; echo "<tr>"; for($j=0; $j<count($chiavi); $j++){ echo "<td>".$chiavi[$j]."</td>"; } echo "</tr>"; for($i=0; $i<count($lista); $i++){ $auto[$i] = (array) $lista[$i]; /* $chiavi = array_keys($auto[$i]); echo "<tr>"; for($j=0; $j<count($chiavi); $j++){ echo "<td>".$chiavi[$j]."</td>"; } echo "</tr>"; */ echo "<tr style='white-space: nowrap;'>"; for($j=0; $j<count($chiavi); $j++){ $chiave = $chiavi[$j]; echo "<td>".$auto[$i][$chiave]."</td>"; } echo "</tr>"; } echo "</table>"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 13
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 24
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 31
Branch analysis from position: 42
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 24
Branch analysis from position: 47
Branch analysis from position: 24
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 31
Branch analysis from position: 42
Branch analysis from position: 31
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 13
Branch analysis from position: 21
Branch analysis from position: 13
filename:       /in/mbWLu
function name:  (null)
number of ops:  49
compiled vars:  !0 = $contenuto, !1 = $lista, !2 = $chiavi, !3 = $j, !4 = $i, !5 = $auto, !6 = $chiave
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'http%3A%2F%2Fwww.mistermatic.it%2Fapi%2F%3Fcc%3D89091203'
          2        DO_ICALL                                         $7      
          3        ASSIGN                                                   !0, $7
    6     4        INIT_FCALL                                               'json_decode'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $9      
          7        ASSIGN                                                   !1, $9
    7     8        ASSIGN                                                   !2, <array>
   32     9        ECHO                                                     '%3Ctable+border%3D%271%27+cellspacing%3D%270%27%3E'
   33    10        ECHO                                                     '%3Ctr%3E'
   34    11        ASSIGN                                                   !3, 0
         12      > JMP                                                      ->18
   35    13    >   FETCH_DIM_R                                      ~13     !2, !3
         14        CONCAT                                           ~14     '%3Ctd%3E', ~13
         15        CONCAT                                           ~15     ~14, '%3C%2Ftd%3E'
         16        ECHO                                                     ~15
   34    17        PRE_INC                                                  !3
         18    >   COUNT                                            ~17     !2
         19        IS_SMALLER                                               !3, ~17
         20      > JMPNZ                                                    ~18, ->13
   37    21    >   ECHO                                                     '%3C%2Ftr%3E'
   40    22        ASSIGN                                                   !4, 0
         23      > JMP                                                      ->44
   41    24    >   FETCH_DIM_R                                      ~21     !1, !4
         25        CAST                                          7  ~22     ~21
         26        ASSIGN_DIM                                               !5, !4
         27        OP_DATA                                                  ~22
   52    28        ECHO                                                     '%3Ctr+style%3D%27white-space%3A+nowrap%3B%27%3E'
   53    29        ASSIGN                                                   !3, 0
         30      > JMP                                                      ->39
   54    31    >   FETCH_DIM_R                                      ~24     !2, !3
         32        ASSIGN                                                   !6, ~24
   55    33        FETCH_DIM_R                                      ~26     !5, !4
         34        FETCH_DIM_R                                      ~27     ~26, !6
         35        CONCAT                                           ~28     '%3Ctd%3E', ~27
         36        CONCAT                                           ~29     ~28, '%3C%2Ftd%3E'
         37        ECHO                                                     ~29
   53    38        PRE_INC                                                  !3
         39    >   COUNT                                            ~31     !2
         40        IS_SMALLER                                               !3, ~31
         41      > JMPNZ                                                    ~32, ->31
   57    42    >   ECHO                                                     '%3C%2Ftr%3E'
   40    43        PRE_INC                                                  !4
         44    >   COUNT                                            ~34     !1
         45        IS_SMALLER                                               !4, ~34
         46      > JMPNZ                                                    ~35, ->24
   59    47    >   ECHO                                                     '%3C%2Ftable%3E'
   61    48      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.47 ms | 1400 KiB | 17 Q