3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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> ";
based on IfZqs
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0alpha1
Warning: array_fill_keys() expects exactly 2 parameters, 1 given in /in/bpiAV on line 4