3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = []; $a[0] = "<table style='color:; text-align: left;'> <tr> <td>Processor"; $a[1] = "</td> <td> Intel Core 2 Duo - E8400"; $a[2] = "</td> </tr> <tr> <td> Clockspeed"; $a[3] = "</td> <td> 3.0 GHz"; $a[4] = "</td> </tr> <tr> <td> Memory"; $a[5] = "</td> <td> 4 GB"; $a[6] = "</td> </tr> <tr> <td> Harddisk"; $a[7] = "</td> <td> 250 GB"; $a[8] = "</td> </tr> <tr> <td> Video-adapter"; $a[9] = "</td> <td> VGA, Display"; $a[10] = "</td> </tr> <tr> <td> Netwerkcard"; $a[11] = "</td><td> 1000 mbps LAN"; $a[12] = "</td> </tr> <tr> <td> Optical drive"; $a[13] = "</td><td> DVD-Rewriter"; $a[14] = "</td> </tr> <tr> <td> Operating system"; $a[15] = "</td><td> Windows7 or 10 Pro"; $a[16] = "</td> </tr> <tr> <td> Warranty"; $a[17] = "</td><td> 2 years</td></tr></table>"; foreach ($a as &$e) { $e = trim($e); } $joined = join($a); $stripped = strip_tags($joined,"<td>"); $replaced = str_replace(["<tr>","</td>"],["*","*"],$stripped); $arr = explode("*",$replaced); print_r($arr);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 38, Position 2 = 44
Branch analysis from position: 38
2 jumps found. (Code = 126) Position 1 = 39, Position 2 = 44
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 44
filename:       /in/DAaRF
function name:  (null)
number of ops:  69
compiled vars:  !0 = $a, !1 = $e, !2 = $joined, !3 = $stripped, !4 = $replaced, !5 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0, 0
          2        OP_DATA                                                  '%3Ctable+style%3D%27color%3A%3B+text-align%3A+left%3B%27%3E%0A%3Ctr%3E%0A%3Ctd%3EProcessor'
    7     3        ASSIGN_DIM                                               !0, 1
          4        OP_DATA                                                  '%3C%2Ftd%3E%0A%3Ctd%3E++++++++Intel+Core+2+Duo+-+E8400'
    9     5        ASSIGN_DIM                                               !0, 2
          6        OP_DATA                                                  '%3C%2Ftd%3E%0A%3C%2Ftr%3E%0A%3Ctr%3E%0A%3Ctd%3E++Clockspeed'
   13     7        ASSIGN_DIM                                               !0, 3
          8        OP_DATA                                                  '%3C%2Ftd%3E%0A%3Ctd%3E+++++++++3.0+GHz'
   15     9        ASSIGN_DIM                                               !0, 4
         10        OP_DATA                                                  '%3C%2Ftd%3E%0A%3C%2Ftr%3E%0A%3Ctr%3E%0A%3Ctd%3E++Memory'
   19    11        ASSIGN_DIM                                               !0, 5
         12        OP_DATA                                                  '%3C%2Ftd%3E%0A%3Ctd%3E++++++++++4+GB'
   21    13        ASSIGN_DIM                                               !0, 6
         14        OP_DATA                                                  '%3C%2Ftd%3E%0A%3C%2Ftr%3E%0A%3Ctr%3E%0A%3Ctd%3E++Harddisk'
   25    15        ASSIGN_DIM                                               !0, 7
         16        OP_DATA                                                  '%3C%2Ftd%3E%0A%3Ctd%3E++++++++++250+GB'
   27    17        ASSIGN_DIM                                               !0, 8
         18        OP_DATA                                                  '%3C%2Ftd%3E%0A%3C%2Ftr%3E%0A%3Ctr%3E%0A%3Ctd%3E++Video-adapter'
   31    19        ASSIGN_DIM                                               !0, 9
         20        OP_DATA                                                  '%3C%2Ftd%3E%0A%3Ctd%3E++++++++++VGA%2C+Display'
   33    21        ASSIGN_DIM                                               !0, 10
         22        OP_DATA                                                  '%3C%2Ftd%3E%0A%3C%2Ftr%3E%0A%3Ctr%3E%0A%3Ctd%3E++Netwerkcard'
   37    23        ASSIGN_DIM                                               !0, 11
         24        OP_DATA                                                  '%3C%2Ftd%3E%3Ctd%3E++++++++++1000+mbps+LAN'
   38    25        ASSIGN_DIM                                               !0, 12
         26        OP_DATA                                                  '%3C%2Ftd%3E%0A%3C%2Ftr%3E%0A%3Ctr%3E%0A%3Ctd%3E+Optical+drive'
   42    27        ASSIGN_DIM                                               !0, 13
         28        OP_DATA                                                  '%3C%2Ftd%3E%3Ctd%3E++++++++++DVD-Rewriter'
   43    29        ASSIGN_DIM                                               !0, 14
         30        OP_DATA                                                  '%3C%2Ftd%3E%0A%3C%2Ftr%3E%0A%3Ctr%3E%0A%3Ctd%3E++Operating+system'
   47    31        ASSIGN_DIM                                               !0, 15
         32        OP_DATA                                                  '%3C%2Ftd%3E%3Ctd%3E++++++++++Windows7+or+10+Pro'
   48    33        ASSIGN_DIM                                               !0, 16
         34        OP_DATA                                                  '%3C%2Ftd%3E%0A%3C%2Ftr%3E%0A%3Ctr%3E%0A%3Ctd%3E++Warranty'
   52    35        ASSIGN_DIM                                               !0, 17
         36        OP_DATA                                                  '%3C%2Ftd%3E%3Ctd%3E+++++++++2+years%3C%2Ftd%3E%3C%2Ftr%3E%3C%2Ftable%3E'
   54    37      > FE_RESET_RW                                      $25     !0, ->44
         38    > > FE_FETCH_RW                                              $25, !1, ->44
   55    39    >   INIT_FCALL                                               'trim'
         40        SEND_VAR                                                 !1
         41        DO_ICALL                                         $26     
         42        ASSIGN                                                   !1, $26
   54    43      > JMP                                                      ->38
         44    >   FE_FREE                                                  $25
   57    45        INIT_FCALL                                               'join'
         46        SEND_VAR                                                 !0
         47        DO_ICALL                                         $28     
         48        ASSIGN                                                   !2, $28
   58    49        INIT_FCALL                                               'strip_tags'
         50        SEND_VAR                                                 !2
         51        SEND_VAL                                                 '%3Ctd%3E'
         52        DO_ICALL                                         $30     
         53        ASSIGN                                                   !3, $30
   59    54        INIT_FCALL                                               'str_replace'
         55        SEND_VAL                                                 <array>
         56        SEND_VAL                                                 <array>
         57        SEND_VAR                                                 !3
         58        DO_ICALL                                         $32     
         59        ASSIGN                                                   !4, $32
   60    60        INIT_FCALL                                               'explode'
         61        SEND_VAL                                                 '%2A'
         62        SEND_VAR                                                 !4
         63        DO_ICALL                                         $34     
         64        ASSIGN                                                   !5, $34
   61    65        INIT_FCALL                                               'print_r'
         66        SEND_VAR                                                 !5
         67        DO_ICALL                                                 
         68      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
193.53 ms | 1400 KiB | 25 Q