3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email_invoices = ''; $x['invoices'] = '1765587|95.37||1407727800,1779463|6.01||1407727800,'; $invoice_bits = explode(',',$x['invoices']); for($i=0; $i<count($invoice_bits)-1; $i++) { $bits = explode('|', $invoice_bits[$i]); $email_invoices .= '<tr> <td style="padding-right: 10px;">'.$bits[0].'</td> <td style="padding-right: 10px;">'.$bits[2].'</td> <td style="padding-right: 10px;">'.$bits[1].'</td> </tr>'; } echo $email_invoices;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 11
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 11
Branch analysis from position: 32
Branch analysis from position: 11
filename:       /in/8P7vv
function name:  (null)
number of ops:  34
compiled vars:  !0 = $email_invoices, !1 = $x, !2 = $invoice_bits, !3 = $i, !4 = $bits
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, ''
    3     1        ASSIGN_DIM                                               !1, 'invoices'
          2        OP_DATA                                                  '1765587%7C95.37%7C%7C1407727800%2C1779463%7C6.01%7C%7C1407727800%2C'
    4     3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '%2C'
          5        FETCH_DIM_R                                      ~7      !1, 'invoices'
          6        SEND_VAL                                                 ~7
          7        DO_ICALL                                         $8      
          8        ASSIGN                                                   !2, $8
    5     9        ASSIGN                                                   !3, 0
         10      > JMP                                                      ->28
    7    11    >   INIT_FCALL                                               'explode'
         12        SEND_VAL                                                 '%7C'
         13        FETCH_DIM_R                                      ~11     !2, !3
         14        SEND_VAL                                                 ~11
         15        DO_ICALL                                         $12     
         16        ASSIGN                                                   !4, $12
    9    17        FETCH_DIM_R                                      ~14     !4, 0
         18        CONCAT                                           ~15     '%3Ctr%3E%0A%09%09%09%09%3Ctd+style%3D%22padding-right%3A+10px%3B%22%3E', ~14
         19        CONCAT                                           ~16     ~15, '%3C%2Ftd%3E%0A%09%09%09%09%3Ctd+style%3D%22padding-right%3A+10px%3B%22%3E'
   10    20        FETCH_DIM_R                                      ~17     !4, 2
         21        CONCAT                                           ~18     ~16, ~17
         22        CONCAT                                           ~19     ~18, '%3C%2Ftd%3E%0A%09%09%09%09%09%09%09%09%3Ctd+style%3D%22padding-right%3A+10px%3B%22%3E'
   11    23        FETCH_DIM_R                                      ~20     !4, 1
         24        CONCAT                                           ~21     ~19, ~20
         25        CONCAT                                           ~22     ~21, '%3C%2Ftd%3E%0A%09%09%09%09%3C%2Ftr%3E'
         26        ASSIGN_OP                                     8          !0, ~22
    5    27        PRE_INC                                                  !3
         28    >   COUNT                                            ~25     !2
         29        SUB                                              ~26     ~25, 1
         30        IS_SMALLER                                               !3, ~26
         31      > JMPNZ                                                    ~27, ->11
   15    32    >   ECHO                                                     !0
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.31 ms | 1396 KiB | 15 Q