3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = range(27,58); $json = array_fill_keys($json); print_r($json);die; $additional=''; for($i=27;$i<=58;$i++){ if(!empty($json['field'.$i]) && $i!=31 && $i!=42 && $i!=54){ $additional.='<li>'.$pdfdata['field'.$i].'</li>'; } } $html= " <div class=\"logo\" style=\"float: right; \"> <img src=\"img/LOGO2.png\" width=\"40%\" alt=\"\"> </div> <div class=\"clear\" style=\"clear: both\"></div> <div class=\"content\"> <p>To: $name</p> <p>Trading Entity: {$json['field10']}</p> </div> <div class='content-inner'> <p>Other Things: </p> $additional </div> ";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/bpiAV
function name:  (null)
number of ops:  47
compiled vars:  !0 = $json, !1 = $additional, !2 = $i, !3 = $pdfdata, !4 = $html, !5 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 27
          2        SEND_VAL                                                 58
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !0, $6
    4     5        INIT_FCALL                                               'array_fill_keys'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $8      
          8        ASSIGN                                                   !0, $8
    5     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > EXIT                                                     
    7    13*       ASSIGN                                                   !1, ''
    8    14*       ASSIGN                                                   !2, 27
         15*       JMP                                                      ->35
   10    16*       CONCAT                                           ~13     'field', !2
         17*       ISSET_ISEMPTY_DIM_OBJ                         1  ~14     !0, ~13
         18*       BOOL_NOT                                         ~15     ~14
         19*       JMPZ_EX                                          ~15     ~15, ->22
         20*       IS_NOT_EQUAL                                     ~16     !2, 31
         21*       BOOL                                             ~15     ~16
         22*       JMPZ_EX                                          ~15     ~15, ->25
         23*       IS_NOT_EQUAL                                     ~17     !2, 42
         24*       BOOL                                             ~15     ~17
         25*       JMPZ_EX                                          ~15     ~15, ->28
         26*       IS_NOT_EQUAL                                     ~18     !2, 54
         27*       BOOL                                             ~15     ~18
         28*       JMPZ                                                     ~15, ->34
   11    29*       CONCAT                                           ~19     'field', !2
         30*       FETCH_DIM_R                                      ~20     !3, ~19
         31*       CONCAT                                           ~21     '%3Cli%3E', ~20
         32*       CONCAT                                           ~22     ~21, '%3C%2Fli%3E'
         33*       ASSIGN_OP                                     8          !1, ~22
    8    34*       PRE_INC                                                  !2
         35*       IS_SMALLER_OR_EQUAL                                      !2, 58
         36*       JMPNZ                                                    ~25, ->16
   15    37*       ROPE_INIT                                     7  ~28     '%0A%0A++++++++%3Cdiv+class%3D%22logo%22+style%3D%22float%3A+right%3B+%22%3E%0A++++++++++++%3Cimg+src%3D%22img%2FLOGO2.png%22+width%3D%2240%25%22+alt%3D%22%22%3E%0A++++++++%3C%2Fdiv%3E%0A++++++++%3Cdiv+class%3D%22clear%22+style%3D%22clear%3A+both%22%3E%3C%2Fdiv%3E%0A++++++++%3Cdiv+class%3D%22content%22%3E%0A++++++++++++%3Cp%3ETo%3A+'
   22    38*       ROPE_ADD                                      1  ~28     ~28, !5
         39*       ROPE_ADD                                      2  ~28     ~28, '%3C%2Fp%3E%0A++++++++++++%3Cp%3ETrading+Entity%3A+'
   23    40*       FETCH_DIM_R                                      ~26     !0, 'field10'
         41*       ROPE_ADD                                      3  ~28     ~28, ~26
         42*       ROPE_ADD                                      4  ~28     ~28, '%3C%2Fp%3E%0A%0A++++++++%3C%2Fdiv%3E%0A+++++++%3Cdiv+class%3D%27content-inner%27%3E%0A+++++++%3Cp%3EOther+Things%3A++%3C%2Fp%3E%0A+++++++'
   28    43*       ROPE_ADD                                      5  ~28     ~28, !1
         44*       ROPE_END                                      6  ~27     ~28, '%0A++++++++%3C%2Fdiv%3E+%0A%0A+++++'
   15    45*       ASSIGN                                                   !4, ~27
   31    46*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.05 ms | 1400 KiB | 19 Q